home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 4 / AACD04.ISO / AACD / Programming / envsof20 / source / syntax / keyword.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-08-28  |  547 b   |  29 lines

  1. /*
  2.  * keyword.h
  3.  *
  4.  * Copyright 1999 Thomas Aglassinger and others, see file "forum.txt"
  5.  */
  6.  
  7. /* Handling of reserved word lists */
  8. #define MAXIMUM_KEYWORD_COUNT  100
  9. #define MAXIMUM_KEYWORD_LENGTH 100
  10.  
  11. #include <exec/types.h>
  12. #include <exec/lists.h>
  13. #include <exec/nodes.h>
  14. #include <exec/semaphores.h>
  15.  
  16. // Master list of holding all keyword list nodes
  17. struct keyword_list_s {
  18.    struct SignalSemaphore semaphore;
  19.    struct List list;
  20. };
  21.  
  22. struct keyword_info {
  23.    struct Node node;
  24.    ULONG usage_count;
  25.    ULONG word_count;
  26.    STRPTR *word;
  27. };
  28.  
  29.