home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 182.lha / Calls / scan.h < prev   
C/C++ Source or Header  |  1988-04-28  |  1KB  |  38 lines

  1. /*
  2.  * scan.h -- scanner for calls
  3.  *    <stdio> must be included before this file, and
  4.  *    "main.h" is assumed the main.h defines BUCKET, also included before
  5.  */
  6.  
  7. #define LCURLY      '{'            /*}*/    /* messes with vi's mind     */
  8. #define RCURLY     /*{*/           '}'    /* to have curly in text    */
  9. #define LPAREN      '('        /*)*/    /* same mess            */
  10. #define RPAREN   /*(*/         ')'    /* as above            */
  11. #define LBRACK      '['        /*]*/    /* more mess implies        */
  12. #define RBRACK     /*[*/         ']'    /* more mass            */
  13. #define BUCKET        100        /* number of objects to alloc    */
  14. #define MAXCHARS    80        /* max number of chars in ident    */
  15.  
  16. typedef struct INnode {
  17.     struct HTnode *pHTname;        /* namep;            */
  18.     struct INnode *pINnext;        /* pnext            */
  19. } INST;
  20. #define nilINST    ((INST *) 0)
  21.  
  22. typedef struct HTnode {
  23.     char *pchname, *pchfile;    /* name & file declared        */
  24.     struct HTnode *pHTnext;        /* next in table (list)        */
  25.     struct INnode *pINcalls;    /* list of calls        */
  26.     short int
  27.         listp,            /* 0 = don't, 1 = do, 2 = done    */
  28.         calledp,        /* have we ever been called    */
  29.         iline,            /* line output on        */
  30.         localp;            /* crude static function flag    */
  31. } HASH, *PHT;
  32. #define nilHASH    ((HASH *) 0)
  33.  
  34. extern void level1();
  35. extern FILE *input;
  36. extern HASH *newHASH(), *search(), *pHTRoot[2];
  37. extern INST *newINST();
  38.