home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_09_10 / 9n10088a < prev    next >
Text File  |  1979-12-31  |  722b  |  43 lines

  1. /*
  2.     listing 1 - common.h
  3. */
  4.  
  5. #define INT    0
  6. #define FLOAT   1
  7. #define STRING  2
  8.  
  9. #define NUMBER    0
  10. #define PRICE   1
  11. #define CODE    2
  12.  
  13. #define OFF 0
  14. #define ON  1
  15.  
  16. #define SUCCEED 0
  17. #define FAIL    1
  18.  
  19. #define FUNC    int
  20. #define BOOL    int
  21.  
  22. struct record {
  23.     int    id;
  24.     int    number;
  25.     float    price;
  26.     char    code[10];
  27. } ;
  28.  
  29. struct field_definition {
  30.     char keyword[10];
  31.     int  type;
  32.     struct record *position_ptr;
  33. };
  34.  
  35. FUNC lookup (int type, struct record *position_ptr, 
  36.         struct record *tran_start, 
  37.         int transaction_size, void *user_value);
  38.  
  39. FUNC type_check (struct field_definition *definitions, 
  40.         struct record *position_ptr,
  41.         int transaction_size, char  *user_keyword, 
  42.         char *user_value);
  43.