File: enum.h

package info (click to toggle)
c2man 2.41-11
  • links: PTS
  • area: main
  • in suites: potato
  • size: 800 kB
  • ctags: 863
  • sloc: ansic: 6,559; sh: 5,236; yacc: 839; lex: 621; makefile: 229; perl: 81
file content (41 lines) | stat: -rw-r--r-- 1,201 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/* $Id: enum.h,v 2.0 1993/04/05 02:38:20 greyham 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));