1 /********************************************************************
2  * $Author: jgoerzen $
3  * $Revision: 1.1 $
4  * $Date: 2000/08/19 00:28:56 $
5  * $Source: /home/jgoerzen/tmp/gopher-umn/gopher/head/object/STAarray.h,v $
6  * $State: Exp $
7  *
8  * Paul Lindner, University of Minnesota CIS.
9  *
10  * Copyright 1991, 1992 by the Regents of the University of Minnesota
11  * see the file "Copyright" in the distribution for conditions of use.
12  *********************************************************************
13  * MODULE: STAarray.h
14  * Header file, abstraction of a dynamic Strings array.
15  *********************************************************************
16  * Revision History:
17  * $Log: STAarray.h,v $
18  * Revision 1.1  2000/08/19 00:28:56  jgoerzen
19  * Initial revision
20  *
21  * Revision 3.4  1995/09/26  05:16:32  lindner
22  * more fixes...
23  *
24  * Revision 3.3  1993/07/27  00:30:13  lindner
25  * plus patch from Mitra
26  *
27  * Revision 3.2  1993/03/26  19:51:05  lindner
28  * Added STApop
29  *
30  * Revision 3.1.1.1  1993/02/11  18:03:07  lindner
31  * Gopher+1.2beta release
32  *
33  * Revision 1.1  1993/01/31  00:34:40  lindner
34  * Initial revision
35  *
36  * Revision 1.1  1992/12/10  23:27:52  lindner
37  * gopher 1.1 release
38  *
39  *
40  *********************************************************************/
41 
42 #ifndef STAARRAY_H
43 #define STAARRAY_H
44 
45 #include "STRstring.h"
46 #include "DAarray.h"
47 
48 typedef DynArray StrArray;
49 #define STAnew(a)        (DAnew((a),STRnew,STRinit,STRdestroy,STRcpy))
50 #define STAinit(a)       (DAinit((a)))
51 #define STAgetTop(a)     (DAgetTop(a))
52 #define STAgetEntry(a,b) (String*)(DAgetEntry(a,b))
53 /* Some places use STAgetEntry and then pretend they got a char* back)*/
54 #define STAgetText(a,b)	 (char*)(STRget(STAgetEntry(a,b)))
55 #define STApush(a,b)     (DApush((DynArray*)(a),(char*)(b)))
56 #define STApop(a)        (String*)(DApop(a))
57 #define STAdestroy(a)    (DAdestroy(a))
58 #define STAcpy(a,b)      (DAcpy(a,b))
59 
60 
61 #endif
62