home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / database / postgres / postgre3.z / postgre3 / src / lib / H / parser / atoms.h next >
Encoding:
C/C++ Source or Header  |  1992-08-27  |  615 b   |  22 lines

  1. /* 
  2.  * atoms.h
  3.  * - string,atom lookup thingy, reduces strcmp traffic greatly
  4.  * in the bowels of the system.  Look for actual defs in lib/C/atoms.c
  5.  *
  6.  * $Header: /private/postgres/src/lib/H/parser/RCS/atoms.h,v 1.4 1991/11/14 23:31:13 jolly Exp $
  7.  */
  8.  
  9. /*
  10. #define lengthof(byte_array)    (sizeof(byte_array) / sizeof((byte_array)[0]))
  11. #define endof(byte_array)    (&byte_array[lengthof(byte_array)])
  12. */
  13. typedef struct ScanKeyword {
  14.     char    *name;
  15.     int    value;
  16. } ScanKeyword;
  17.  
  18. extern ScanKeyword *ScanKeywordLookup ARGS((char *txt));
  19. extern String AtomValueGetString ARGS((int atomval));
  20. extern ScanKeyword    ScanKeywords[];
  21.  
  22.