perl 3.0 patch #22 patch #19, continued
[p5sagit/p5-mst-13.2.git] / array.h
CommitLineData
0d3e774c 1/* $Header: array.h,v 3.0.1.1 89/11/17 15:03:42 lwall Locked $
a687059c 2 *
3 * Copyright (c) 1989, Larry Wall
4 *
5 * You may distribute under the terms of the GNU General Public License
6 * as specified in the README file that comes with the perl 3.0 kit.
8d063cd8 7 *
8 * $Log: array.h,v $
0d3e774c 9 * Revision 3.0.1.1 89/11/17 15:03:42 lwall
10 * patch5: nested foreach on same array didn't work
11 *
a687059c 12 * Revision 3.0 89/10/18 15:08:41 lwall
13 * 3.0 baseline
8d063cd8 14 *
15 */
16
17struct 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 28STR *afetch();
29bool astore();
8d063cd8 30STR *apop();
31STR *ashift();
378cc40b 32void afree();
33void aclear();
8d063cd8 34bool apush();
378cc40b 35int alen();
8d063cd8 36ARRAY *anew();
a687059c 37ARRAY *afake();