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