home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / c / c2man-2.0pl33.lha / c2man-2.0 / enum.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-01-14  |  1.2 KB  |  42 lines

  1. /* $Id: enum.h,v 2.0 1993/04/05 02:38:20 greyham Exp $ */
  2. #include "config.h"
  3.  
  4. extern SymbolTable *enum_table;    /* enum symbol table */
  5.  
  6. /* Initialize a list of enumerators.*/
  7. EnumeratorList *
  8. new_enumerator_list _((Enumerator *enumerator));
  9.  
  10. /* Add the enumerator to the list. */
  11. void
  12. add_enumerator_list _((EnumeratorList *list,   Enumerator *enumerator));
  13.  
  14. /* Free storage used by the elements in the enumerator list. */
  15. void
  16. free_enumerator_list _((EnumeratorList *enumerator_list));
  17.  
  18. void
  19. new_enumerator _((Enumerator *e, char *name,
  20.         char *comment_before, char *comment_after));
  21.  
  22. /* Free the storage used by the enumerator.*/
  23. void
  24. free_enumerator _((Enumerator *param));
  25.  
  26. /* add a comment to the last enumeralor in the list */
  27. int
  28. comment_last_enumerator _((EnumeratorList *enum_list, char *comment));
  29.  
  30. /* enum namespace management */
  31. void add_enum_symbol _((char *name, EnumeratorList *first_enum));
  32.  
  33. /* look for the first enumerator associated with the symbol */
  34. EnumeratorList *find_enum_symbol _((char *name));
  35.  
  36. void destroy_enum_lists();
  37.  
  38. /* create new typedef symbols */
  39. void new_typedef_symbols _((DeclSpec *decl_spec, DeclaratorList *decl_list));
  40.  
  41. void enumerator_error _((char *name));
  42.