Commit | Line | Data |
---|---|---|
2b317908 | 1 | /* $RCSfile: array.h,v $$Revision: 4.0.1.1 $$Date: 91/06/07 10:19:20 $ |
a687059c | 2 | * |
2b317908 | 3 | * Copyright (c) 1991, Larry Wall |
a687059c | 4 | * |
2b317908 | 5 | * You may distribute under the terms of either the GNU General Public |
6 | * License or the Artistic License, as specified in the README file. | |
8d063cd8 | 7 | * |
8 | * $Log: array.h,v $ | |
2b317908 | 9 | * Revision 4.0.1.1 91/06/07 10:19:20 lwall |
10 | * patch4: new copyright notice | |
11 | * | |
fe14fcc3 | 12 | * Revision 4.0 91/03/20 01:03:44 lwall |
13 | * 4.0 baseline. | |
8d063cd8 | 14 | * |
15 | */ | |
16 | ||
17 | struct atbl { | |
18 | STR **ary_array; | |
a687059c | 19 | STR **ary_alloc; |
378cc40b | 20 | STR *ary_magic; |
21 | int ary_max; | |
22 | int ary_fill; | |
a687059c | 23 | char ary_flags; |
8d063cd8 | 24 | }; |
25 | ||
a687059c | 26 | #define ARF_REAL 1 /* free old entries */ |
27 | ||
8d063cd8 | 28 | STR *afetch(); |
29 | bool astore(); | |
8d063cd8 | 30 | STR *apop(); |
31 | STR *ashift(); | |
378cc40b | 32 | void afree(); |
33 | void aclear(); | |
8d063cd8 | 34 | bool apush(); |
378cc40b | 35 | int alen(); |
8d063cd8 | 36 | ARRAY *anew(); |
a687059c | 37 | ARRAY *afake(); |