diff options
author | behdad <behdad> | 2004-05-03 05:17:48 +0000 |
---|---|---|
committer | behdad <behdad> | 2004-05-03 05:17:48 +0000 |
commit | 577ed4095383ef5284225d45709e6b5f0598a064 (patch) | |
tree | 6c7d0ce55124a688b4d7050e684d9d7a1e3aa71d /enum.h | |
download | c2man-master.tar.gz |
Diffstat (limited to 'enum.h')
-rw-r--r-- | enum.h | 41 |
1 files changed, 41 insertions, 0 deletions
@@ -0,0 +1,41 @@ +/* $Id: enum.h,v 1.1 2004-05-03 05:17:48 behdad Exp $ */ +#include "config.h" + +extern SymbolTable *enum_table; /* enum symbol table */ + +/* Initialize a list of enumerators.*/ +EnumeratorList * +new_enumerator_list _((Enumerator *enumerator)); + +/* Add the enumerator to the list. */ +void +add_enumerator_list _((EnumeratorList *list, Enumerator *enumerator)); + +/* Free storage used by the elements in the enumerator list. */ +void +free_enumerator_list _((EnumeratorList *enumerator_list)); + +void +new_enumerator _((Enumerator *e, char *name, + char *comment_before, char *comment_after)); + +/* Free the storage used by the enumerator.*/ +void +free_enumerator _((Enumerator *param)); + +/* add a comment to the last enumeralor in the list */ +int +comment_last_enumerator _((EnumeratorList *enum_list, char *comment)); + +/* enum namespace management */ +void add_enum_symbol _((char *name, EnumeratorList *first_enum)); + +/* look for the first enumerator associated with the symbol */ +EnumeratorList *find_enum_symbol _((char *name)); + +void destroy_enum_lists(); + +/* create new typedef symbols */ +void new_typedef_symbols _((DeclSpec *decl_spec, DeclaratorList *decl_list)); + +void enumerator_error _((char *name)); |