home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / misc / emu / gbuk.lha / src / READVARS.H < prev    next >
C/C++ Source or Header  |  1996-09-10  |  441b  |  24 lines

  1. #define    VARIABLE_INVALID        0
  2. #define    VARIABLE_NUMBER            1
  3. #define    VARIABLE_STRING            2
  4. #define    VARIABLE_NUMBER_ARRAY    3
  5. #define    VARIABLE_STRING_ARRAY    4
  6.  
  7. typedef struct{
  8.     UBYTE    Type;
  9.     union    { 
  10.         char *String; 
  11.         char **StringArray;
  12.         int Number; 
  13.         int NumberData;
  14.     }Data;
  15. }VARIABLE;
  16.  
  17. typedef struct{
  18.     int            Number;
  19.     VARIABLE    *Data;
  20. }VARIABLEHEADER;
  21.  
  22.  
  23. void        KillVariable(VARIABLEHEADER *var);
  24. VARIABLEHEADER    *FindVariable(char *name, char *data);