Home
last modified time | relevance | path

Searched refs:cpp_hashnode (Results 1 – 25 of 33) sorted by relevance

12

/openbsd-src/gnu/gcc/libcpp/
H A Dpch.c26 static int write_macdef (cpp_reader *, cpp_hashnode *, void *);
27 static int save_idents (cpp_reader *, cpp_hashnode *, void *);
31 static int count_defs (cpp_reader *, cpp_hashnode *, void *);
33 static int collect_ht_nodes (cpp_reader *, cpp_hashnode *, void *);
34 static int write_defs (cpp_reader *, cpp_hashnode *, void *);
35 static int save_macros (cpp_reader *, cpp_hashnode *, void *);
49 write_macdef (cpp_reader *pfile, cpp_hashnode *hn, void *file_p) in write_macdef()
113 cpp_hashnode **defs;
123 save_idents (cpp_reader *pfile ATTRIBUTE_UNUSED, cpp_hashnode *hn, void *ss_p) in save_idents()
210 count_defs (cpp_reader *pfile ATTRIBUTE_UNUSED, cpp_hashnode *hn, void *ss_p) in count_defs()
[all …]
H A Didentifiers.c31 static cpp_hashnode *alloc_node (hash_table *);
35 static cpp_hashnode *
38 cpp_hashnode *node; in alloc_node()
40 node = XOBNEW (&table->pfile->hash_ob, cpp_hashnode); in alloc_node()
41 memset (node, 0, sizeof (cpp_hashnode)); in alloc_node()
91 cpp_hashnode *
102 cpp_hashnode *node; in cpp_defined()
H A Dinternal.h170 cpp_hashnode *macro;
228 cpp_hashnode *n_defined; /* defined operator */
229 cpp_hashnode *n_true; /* C++ keyword true */
230 cpp_hashnode *n_false; /* C++ keyword false */
231 cpp_hashnode *n__VA_ARGS__; /* C99 vararg macros */
367 const cpp_hashnode *mi_cmacro;
368 const cpp_hashnode *mi_ind_cmacro;
496 extern void _cpp_free_definition (cpp_hashnode *);
497 extern bool _cpp_create_definition (cpp_reader *, cpp_hashnode *);
499 extern void _cpp_push_text_context (cpp_reader *, cpp_hashnode *,
[all …]
H A Dmacro.c43 static int enter_macro_context (cpp_reader *, cpp_hashnode *);
44 static int builtin_macro (cpp_reader *, cpp_hashnode *);
45 static void push_ptoken_context (cpp_reader *, cpp_hashnode *, _cpp_buff *,
47 static _cpp_buff *collect_args (cpp_reader *, const cpp_hashnode *);
55 static void replace_args (cpp_reader *, cpp_hashnode *, cpp_macro *,
57 static _cpp_buff *funlike_invocation_p (cpp_reader *, cpp_hashnode *);
64 static bool warn_of_redefinition (cpp_reader *, const cpp_hashnode *,
73 _cpp_warn_if_unused_macro (cpp_reader *pfile, cpp_hashnode *node, in _cpp_warn_if_unused_macro()
113 _cpp_builtin_macro_text (cpp_reader *pfile, cpp_hashnode *node) in _cpp_builtin_macro_text()
282 builtin_macro (cpp_reader *pfile, cpp_hashnode *node) in builtin_macro()
[all …]
H A Ddirectives.c35 const cpp_hashnode *mi_cmacro;/* macro name for #ifndef around entire file */
46 const cpp_hashnode *pragma; /* Name and length. */
101 static void push_conditional (cpp_reader *, int, int, const cpp_hashnode *);
105 static cpp_hashnode *lex_macro_node (cpp_reader *);
106 static int undefine_macros (cpp_reader *, cpp_hashnode *, void *);
109 const cpp_hashnode *);
123 static cpp_hashnode *parse_assertion (cpp_reader *, struct answer **, int);
124 static struct answer ** find_answer (cpp_hashnode *, const struct answer *);
506 static cpp_hashnode *
520 cpp_hashnode *node = token->val.node; in lex_macro_node()
[all …]
H A Dtraditional.c57 cpp_hashnode *node;
83 static cpp_hashnode *lex_identifier (cpp_reader *, const uchar *);
86 static void push_replacement_text (cpp_reader *, cpp_hashnode *);
88 static bool recursive_macro (cpp_reader *, cpp_hashnode *);
90 static void maybe_start_funlike (cpp_reader *, cpp_hashnode *, const uchar *,
243 static cpp_hashnode *
248 cpp_hashnode *result; in lex_identifier()
256 result = (cpp_hashnode *) ht_lookup (pfile->hash_table, pfile->out.cur, in lex_identifier()
313 maybe_start_funlike (cpp_reader *pfile, cpp_hashnode *node, const uchar *start, struct fun_macro *m… in maybe_start_funlike()
470 cpp_hashnode *node; in _cpp_scan_out_logical_line()
[all …]
H A Dinit.c343 cpp_hashnode *hp = cpp_lookup (pfile, b->name, b->len); in mark_named_operators()
370 cpp_hashnode *hp = cpp_lookup (pfile, b->name, b->len); in cpp_init_builtins()
H A Dlex.c494 static cpp_hashnode *
498 cpp_hashnode *result; in lex_identifier()
529 result = (cpp_hashnode *) in lex_identifier()
/openbsd-src/gnu/usr.bin/gcc/gcc/
H A Dcpphash.c31 static cpp_hashnode *alloc_node PARAMS ((hash_table *));
35 static cpp_hashnode *
39 cpp_hashnode *node;
41 node = (cpp_hashnode *) obstack_alloc (&table->pfile->hash_ob,
42 sizeof (cpp_hashnode));
43 memset ((PTR) node, 0, sizeof (cpp_hashnode));
93 cpp_hashnode *
110 cpp_hashnode *node;
H A Dcpphash.h75 cpp_hashnode **params;
206 cpp_hashnode *macro;
257 cpp_hashnode *n_defined; /* defined operator */
258 cpp_hashnode *n_true; /* C++ keyword true */
259 cpp_hashnode *n_false; /* C++ keyword false */
260 cpp_hashnode *n__VA_ARGS__; /* C99 vararg macros */
373 const cpp_hashnode *mi_cmacro;
374 const cpp_hashnode *mi_ind_cmacro;
499 extern void _cpp_free_definition PARAMS ((cpp_hashnode *));
500 extern bool _cpp_create_definition PARAMS ((cpp_reader *, cpp_hashnode *));
[all …]
H A Dcpplib.h42 typedef struct cpp_hashnode cpp_hashnode; typedef
185 cpp_hashnode *node; /* An identifier. */
420 void (*define) PARAMS ((cpp_reader *, unsigned int, cpp_hashnode *));
421 void (*undef) PARAMS ((cpp_reader *, unsigned int, cpp_hashnode *));
473 #define CPP_HASHNODE(HNODE) ((cpp_hashnode *) (HNODE))
481 struct cpp_hashnode struct
580 const cpp_hashnode *));
711 extern cpp_hashnode *cpp_lookup PARAMS ((cpp_reader *,
715 typedef int (*cpp_cb) PARAMS ((cpp_reader *, cpp_hashnode *, void *));
H A Dcppmacro.c43 static int enter_macro_context PARAMS ((cpp_reader *, cpp_hashnode *));
44 static int builtin_macro PARAMS ((cpp_reader *, cpp_hashnode *));
46 PARAMS ((cpp_reader *, cpp_hashnode *, const cpp_token *, unsigned int));
48 PARAMS ((cpp_reader *, cpp_hashnode *, _cpp_buff *,
50 static _cpp_buff *collect_args PARAMS ((cpp_reader *, const cpp_hashnode *));
61 static void replace_args PARAMS ((cpp_reader *, cpp_hashnode *, cpp_macro *,
63 static _cpp_buff *funlike_invocation_p PARAMS ((cpp_reader *, cpp_hashnode *));
70 static bool warn_of_redefinition PARAMS ((cpp_reader *, const cpp_hashnode *,
82 cpp_hashnode *node;
131 cpp_hashnode *node;
[all …]
H A Dcpplib.c43 const cpp_hashnode *mi_cmacro;/* macro name for #ifndef around entire file */
54 const cpp_hashnode *pragma; /* Name and length. */
108 const cpp_hashnode *));
115 static cpp_hashnode *lex_macro_node PARAMS ((cpp_reader *));
118 PARAMS ((struct pragma_entry *, const cpp_hashnode *pragma));
120 PARAMS ((cpp_reader *, struct pragma_entry **, const cpp_hashnode *,
131 static cpp_hashnode *parse_assertion PARAMS ((cpp_reader *, struct answer **,
133 static struct answer ** find_answer PARAMS ((cpp_hashnode *,
481 static cpp_hashnode *
496 cpp_hashnode *node = token->val.node;
[all …]
H A Dcpptrad.c57 cpp_hashnode *node;
87 static cpp_hashnode *lex_identifier PARAMS ((cpp_reader *, const uchar *));
91 static void push_replacement_text PARAMS ((cpp_reader *, cpp_hashnode *));
93 static bool recursive_macro PARAMS ((cpp_reader *, cpp_hashnode *));
96 static void maybe_start_funlike PARAMS ((cpp_reader *, cpp_hashnode *,
301 static cpp_hashnode *
308 cpp_hashnode *result;
321 result = (cpp_hashnode *) ht_lookup (pfile->hash_table, pfile->out.cur,
396 cpp_hashnode *node;
569 cpp_hashnode *node;
[all …]
H A Dcppmain.c36 static int dump_macro PARAMS ((cpp_reader *, cpp_hashnode *, void *));
46 static void cb_define PARAMS ((cpp_reader *, unsigned int, cpp_hashnode *));
47 static void cb_undef PARAMS ((cpp_reader *, unsigned int, cpp_hashnode *));
329 cpp_hashnode *node;
349 cpp_hashnode *node;
419 cpp_hashnode *node;
H A Dc-lex.c90 cpp_hashnode *));
92 cpp_hashnode *));
345 cpp_hashnode *node;
356 cpp_hashnode *node;
H A Dcpplex.c72 static cpp_hashnode *parse_identifier PARAMS ((cpp_reader *));
438 static cpp_hashnode *
442 cpp_hashnode *result;
457 result = (cpp_hashnode *)
464 result = (cpp_hashnode *)
H A Dcppfiles.c88 const cpp_hashnode *cmacro; /* macro, if any, preventing reinclusion. */
114 #define NEVER_REREAD ((const cpp_hashnode *) -1)
H A Dcppinit.c712 cpp_hashnode *hp = cpp_lookup (pfile, b->name, b->len);
732 cpp_hashnode *hp = cpp_lookup (pfile, b->name, b->len);
H A Dc-common.h180 struct cpp_hashnode GTY ((skip (""))) node;
/openbsd-src/gnu/gcc/libcpp/include/
H A Dcpplib.h40 typedef struct cpp_hashnode cpp_hashnode; typedef
200 cpp_hashnode *
468 void (*define) (cpp_reader *, unsigned int, cpp_hashnode *);
469 void (*undef) (cpp_reader *, unsigned int, cpp_hashnode *);
561 #define CPP_HASHNODE(HNODE) ((cpp_hashnode *) (HNODE))
599 struct cpp_hashnode GTY(())
683 const cpp_hashnode *);
818 extern cpp_hashnode *cpp_lookup (cpp_reader *, const unsigned char *,
821 typedef int (*cpp_cb) (cpp_reader *, cpp_hashnode *, void *);
H A Dcpp-id-data.h40 cpp_hashnode ** GTY ((nested_ptr (union tree_node,
/openbsd-src/gnu/gcc/gcc/
H A Dc-ppoutput.c46 static int dump_macro (cpp_reader *, cpp_hashnode *, void *);
54 static void cb_define (cpp_reader *, source_location, cpp_hashnode *);
55 static void cb_undef (cpp_reader *, source_location, cpp_hashnode *);
314 cb_define (cpp_reader *pfile, source_location line, cpp_hashnode *node) in cb_define()
333 cpp_hashnode *node) in cb_undef()
432 dump_macro (cpp_reader *pfile, cpp_hashnode *node, void *v ATTRIBUTE_UNUSED) in dump_macro()
H A Dc-lex.c75 static void cb_define (cpp_reader *, unsigned int, cpp_hashnode *);
76 static void cb_undef (cpp_reader *, unsigned int, cpp_hashnode *);
309 cb_define (cpp_reader *pfile, source_location loc, cpp_hashnode *node) in cb_define()
319 cpp_hashnode *node) in cb_undef()
H A Dc-common.h174 struct cpp_hashnode node;

12