Commit | Line | Data |
---|---|---|
bf10efe7 | 1 | /* $RCSfile: array.h,v $$Revision: 4.0.1.2 $$Date: 92/06/08 11:45:57 $ |
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 $ | |
bf10efe7 | 9 | * Revision 4.0.1.2 92/06/08 11:45:57 lwall |
10 | * patch20: removed implicit int declarations on funcions | |
11 | * | |
2b317908 | 12 | * Revision 4.0.1.1 91/06/07 10:19:20 lwall |
13 | * patch4: new copyright notice | |
14 | * | |
fe14fcc3 | 15 | * Revision 4.0 91/03/20 01:03:44 lwall |
16 | * 4.0 baseline. | |
8d063cd8 | 17 | * |
18 | */ | |
19 | ||
20 | struct atbl { | |
21 | STR **ary_array; | |
a687059c | 22 | STR **ary_alloc; |
378cc40b | 23 | STR *ary_magic; |
24 | int ary_max; | |
25 | int ary_fill; | |
a687059c | 26 | char ary_flags; |
8d063cd8 | 27 | }; |
28 | ||
a687059c | 29 | #define ARF_REAL 1 /* free old entries */ |
30 | ||
8d063cd8 | 31 | STR *afetch(); |
32 | bool astore(); | |
8d063cd8 | 33 | STR *apop(); |
34 | STR *ashift(); | |
378cc40b | 35 | void afree(); |
36 | void aclear(); | |
8d063cd8 | 37 | bool apush(); |
378cc40b | 38 | int alen(); |
8d063cd8 | 39 | ARRAY *anew(); |
a687059c | 40 | ARRAY *afake(); |
bf10efe7 | 41 | void aunshift(); |
42 | void afill(); |