PIPS
|
Go to the source code of this file.
Data Structures | |
struct | _newgen_struct_c_parser_context_ |
Typedefs | |
typedef struct _newgen_struct_entity_ * | entity |
typedef struct _newgen_struct_type_ * | type |
typedef struct _newgen_struct_storage_ * | storage |
typedef struct _newgen_struct_qualifier_ * | qualifier |
typedef struct _newgen_struct_c_parser_context_ * | c_parser_context |
#define _gen_c_parser_private_start 153 |
Definition at line 3 of file c_parser_private.h.
#define _newgen_c_parser_context_domain_defined_ |
Definition at line 40 of file c_parser_private.h.
#define _newgen_entity_domain_defined_ |
Definition at line 11 of file c_parser_private.h.
#define _newgen_qualifier_domain_defined_ |
newgen_storage_domain_defined
Definition at line 32 of file c_parser_private.h.
#define _newgen_storage_domain_defined_ |
newgen_type_domain_defined
Definition at line 25 of file c_parser_private.h.
#define _newgen_type_domain_defined_ |
newgen_entity_domain_defined
Definition at line 18 of file c_parser_private.h.
#define C_PARSER_CONTEXT | ( | x | ) | ((c_parser_context)((x).p)) |
newgen_c_parser_context_domain_defined
C_PARSER_CONTEXT
Definition at line 48 of file c_parser_private.h.
Definition at line 51 of file c_parser_private.h.
#define c_parser_context_CAST | ( | x | ) | C_PARSER_CONTEXT(x) |
Definition at line 49 of file c_parser_private.h.
#define C_PARSER_CONTEXT_CAST | ( | x | ) | C_PARSER_CONTEXT(x) |
Definition at line 50 of file c_parser_private.h.
#define c_parser_context_domain (_gen_c_parser_private_start+0) |
newgen_qualifier_domain_defined
Definition at line 38 of file c_parser_private.h.
Definition at line 80 of file c_parser_private.h.
#define C_PARSER_CONTEXT_NEWGEN_DOMAIN (c_parser_context_domain) |
Definition at line 41 of file c_parser_private.h.
#define c_parser_context_NEWGEN_DOMAIN (c_parser_context_domain) |
Definition at line 42 of file c_parser_private.h.
Definition at line 88 of file c_parser_private.h.
#define c_parser_context_qualifiers_ | ( | x | ) | c_parser_context_qualifiers(x) /**old hack compatible */ |
Definition at line 87 of file c_parser_private.h.
Definition at line 82 of file c_parser_private.h.
#define c_parser_context_scope_ | ( | x | ) | c_parser_context_scope(x) /**old hack compatible */ |
Definition at line 81 of file c_parser_private.h.
Definition at line 92 of file c_parser_private.h.
#define c_parser_context_static_ | ( | x | ) | c_parser_context_static(x) /**old hack compatible */ |
Definition at line 91 of file c_parser_private.h.
Definition at line 86 of file c_parser_private.h.
#define c_parser_context_storage_ | ( | x | ) | c_parser_context_storage(x) /**old hack compatible */ |
Definition at line 85 of file c_parser_private.h.
#define C_PARSER_CONTEXT_TYPE c_parser_context |
Definition at line 52 of file c_parser_private.h.
#define c_parser_context_TYPE c_parser_context |
Definition at line 53 of file c_parser_private.h.
Definition at line 84 of file c_parser_private.h.
#define c_parser_context_type_ | ( | x | ) | c_parser_context_type(x) /**old hack compatible */ |
Definition at line 83 of file c_parser_private.h.
Definition at line 90 of file c_parser_private.h.
#define c_parser_context_typedef_ | ( | x | ) | c_parser_context_typedef(x) /**old hack compatible */ |
Definition at line 89 of file c_parser_private.h.
#define c_parser_context_undefined ((c_parser_context)gen_chunk_undefined) |
Definition at line 54 of file c_parser_private.h.
#define c_parser_context_undefined_p | ( | x | ) | ((x)==c_parser_context_undefined) |
Definition at line 55 of file c_parser_private.h.
#define c_parser_private_spec "\--NEWGEN-START 153\n\import entity from \"ri.newgen\";\n\import type from \"ri.newgen\";\n\import storage from \"ri.newgen\";\n\import qualifier from \"ri.newgen\";\n\c_parser_context = scope:string x type:type x storage:storage x qualifiers:qualifier* x typedef:bool x static:bool;\n\" |
Definition at line 94 of file c_parser_private.h.
#define ENTITY_NEWGEN_DOMAIN (entity_domain) |
Definition at line 12 of file c_parser_private.h.
#define entity_NEWGEN_DOMAIN (entity_domain) |
Definition at line 13 of file c_parser_private.h.
#define gen_C_PARSER_CONTEXT_cons gen_c_parser_context_cons |
Definition at line 62 of file c_parser_private.h.
#define QUALIFIER_NEWGEN_DOMAIN (qualifier_domain) |
Definition at line 33 of file c_parser_private.h.
#define qualifier_NEWGEN_DOMAIN (qualifier_domain) |
Definition at line 34 of file c_parser_private.h.
#define STORAGE_NEWGEN_DOMAIN (storage_domain) |
Definition at line 26 of file c_parser_private.h.
#define storage_NEWGEN_DOMAIN (storage_domain) |
Definition at line 27 of file c_parser_private.h.
#define TYPE_NEWGEN_DOMAIN (type_domain) |
Definition at line 19 of file c_parser_private.h.
#define type_NEWGEN_DOMAIN (type_domain) |
Definition at line 20 of file c_parser_private.h.
typedef struct _newgen_struct_c_parser_context_* c_parser_context |
Definition at line 43 of file c_parser_private.h.
typedef struct _newgen_struct_entity_* entity |
Definition at line 14 of file c_parser_private.h.
typedef struct _newgen_struct_qualifier_* qualifier |
Definition at line 35 of file c_parser_private.h.
typedef struct _newgen_struct_storage_* storage |
Definition at line 28 of file c_parser_private.h.
typedef struct _newgen_struct_type_* type |
Definition at line 21 of file c_parser_private.h.
void c_parser_context_assign_contents | ( | c_parser_context | r, |
c_parser_context | v | ||
) |
Definition at line 35 of file c_parser_private.c.
References c_parser_context_defined_p(), check_c_parser_context(), and message_assert.
bool c_parser_context_consistent_p | ( | c_parser_context | p | ) |
Definition at line 25 of file c_parser_private.c.
References check_c_parser_context(), and gen_consistent_p().
bool c_parser_context_defined_p | ( | c_parser_context | p | ) |
Definition at line 29 of file c_parser_private.c.
References gen_defined_p().
Referenced by c_parser_context_assign_contents().
void c_parser_context_non_recursive_free | ( | c_parser_context | p | ) |
Definition at line 42 of file c_parser_private.c.
References free().
c_parser_context check_c_parser_context | ( | c_parser_context | p | ) |
Definition at line 22 of file c_parser_private.c.
References c_parser_context_domain, and gen_check().
Referenced by c_parser_context_assign_contents(), and c_parser_context_consistent_p().
c_parser_context copy_c_parser_context | ( | c_parser_context | p | ) |
C_PARSER_CONTEXT.
Definition at line 16 of file c_parser_private.c.
References gen_copy_tree().
Referenced by GetContextCopy().
void free_c_parser_context | ( | c_parser_context | p | ) |
Definition at line 19 of file c_parser_private.c.
References gen_free().
Referenced by ExitScope().
list gen_c_parser_context_cons | ( | c_parser_context | p, |
list | l | ||
) |
Definition at line 32 of file c_parser_private.c.
References C_PARSER_CONTEXT_NEWGEN_DOMAIN, and gen_typed_cons().
c_parser_context make_c_parser_context | ( | string | a1, |
type | a2, | ||
storage | a3, | ||
list | a4, | ||
bool | a5, | ||
bool | a6 | ||
) |
Definition at line 52 of file c_parser_private.c.
References c_parser_context_domain, gen_alloc(), and GEN_CHECK_ALLOC.
Referenced by CreateDefaultContext().
c_parser_context read_c_parser_context | ( | FILE * | f | ) |
Definition at line 49 of file c_parser_private.c.
References f(), and gen_read().
void write_c_parser_context | ( | FILE * | f, |
c_parser_context | p | ||
) |
Definition at line 46 of file c_parser_private.c.
References f(), and gen_write().