+++ /dev/null
-/*\r
- * hash.h -- define hash table entries, sizes, hash function...\r
- *\r
- * SOFTWARE RIGHTS\r
- *\r
- * We reserve no LEGAL rights to the Purdue Compiler Construction Tool\r
- * Set (PCCTS) -- PCCTS is in the public domain. An individual or\r
- * company may do whatever they wish with source code distributed with\r
- * PCCTS or the code generated by PCCTS, including the incorporation of\r
- * PCCTS, or its output, into commerical software.\r
- *\r
- * We encourage users to develop software with PCCTS. However, we do ask\r
- * that credit is given to us for developing PCCTS. By "credit",\r
- * we mean that if you incorporate our source code into one of your\r
- * programs (commercial product, research project, or otherwise) that you\r
- * acknowledge this fact somewhere in the documentation, research report,\r
- * etc... If you like PCCTS and have developed a nice tool with the\r
- * output, please mention that you developed it using PCCTS. In\r
- * addition, we ask that this header remain intact in our source code.\r
- * As long as these guidelines are kept, we expect to continue enhancing\r
- * this system and expect to make other tools available as they are\r
- * completed.\r
- *\r
- * ANTLR 1.33\r
- * Terence Parr\r
- * Parr Research Corporation\r
- * with Purdue University and AHPCRC, University of Minnesota\r
- * 1989-2001\r
- */\r
-\r
- /* H a s h T a b l e S t u f f */\r
-\r
-#ifndef HashTableSize\r
-#define HashTableSize 553\r
-#endif\r
-\r
-#ifndef StrTableSize\r
-#ifdef PC32\r
-#define StrTableSize 1000000\r
-#endif\r
-#endif\r
-\r
-#ifndef StrTableSize\r
-#ifdef PC\r
-#define StrTableSize 655200\r
-#endif\r
-#endif\r
-\r
-#ifndef StrTableSize\r
-#define StrTableSize 1000000\r
-#endif\r
-\r
-typedef struct _entry { /* Minimum hash table entry -- superclass */\r
- char *str;\r
- struct _entry *next;\r
- } Entry;\r
-\r
-/* Hash 's' using 'size', place into h (s is modified) */\r
-#define Hash(s,h,size) \\r
- {while ( *s != '\0' ) h = (h<<1) + *s++; \\r
- h %= size;}\r
-\r
-#ifdef __USE_PROTOS\r
-Entry *hash_get(Entry **, char *),\r
- **newHashTable(void),\r
- *hash_add(Entry **, char *, Entry *);\r
-\r
-void killHashTable(Entry **);\r
-\r
-#else\r
-Entry *hash_get(), **newHashTable(), *hash_add();\r
-void killHashTable(); /* MR9 23-Sep-97 */\r
-#endif\r