Home
last modified time | relevance | path

Searched refs:cpp_token (Results 1 – 25 of 41) sorted by relevance

12

/openbsd-src/gnu/gcc/libcpp/
H A Dmacro.c34 const cpp_token **first; /* First token in unexpanded argument. */
35 const cpp_token **expanded; /* Macro-expanded argument. */
36 const cpp_token *stringified; /* Stringified argument. */
46 const cpp_token **, unsigned int);
49 static const cpp_token *padding_token (cpp_reader *, const cpp_token *);
51 static const cpp_token *new_string_token (cpp_reader *, uchar *, unsigned int);
52 static const cpp_token *stringify_arg (cpp_reader *, macro_arg *);
53 static void paste_all_tokens (cpp_reader *, const cpp_token *);
54 static bool paste_tokens (cpp_reader *, const cpp_token **, const cpp_token *);
62 static cpp_token *alloc_expansion_token (cpp_reader *, cpp_macro *);
[all …]
H A Dinternal.h122 const cpp_token *token;
123 const cpp_token **ptoken;
131 cpp_token *base, *limit;
340 cpp_token directive_result;
372 cpp_token *cur_token;
399 cpp_token avoid_paste;
400 cpp_token eof;
508 const cpp_token *, unsigned int);
542 extern cpp_token *_cpp_temp_token (cpp_reader *);
543 extern const cpp_token *_cpp_lex_token (cpp_reader *);
[all …]
H A Ddirectives.c100 static const char *parse_include (cpp_reader *, int *, const cpp_token ***);
119 static const cpp_token *get_token_no_padding (cpp_reader *);
120 static const cpp_token *get__Pragma_string (cpp_reader *);
220 static const cpp_token **
225 const cpp_token **buf; in check_eol_return_comments()
227 buf = XNEWVEC (const cpp_token *, capacity); in check_eol_return_comments()
233 const cpp_token *tok; in check_eol_return_comments()
247 buf = XRESIZEVEC (const cpp_token *, buf, capacity); in check_eol_return_comments()
376 const cpp_token *dname; in _cpp_handle_directive()
509 const cpp_token *token = _cpp_lex_token (pfile); in lex_macro_node()
[all …]
H A Dlex.c56 static void lex_string (cpp_reader *, cpp_token *, const uchar *);
57 static void save_comment (cpp_reader *, cpp_token *, const uchar *, cppchar_t);
58 static void create_literal (cpp_reader *, cpp_token *, const uchar *,
72 cpp_ideq (const cpp_token *token, const char *string) in cpp_ideq()
434 const cpp_token *token, in warn_about_normalization()
588 create_literal (cpp_reader *pfile, cpp_token *token, const uchar *base, in create_literal()
608 lex_string (cpp_reader *pfile, cpp_token *token, const uchar *base) in lex_string()
659 save_comment (cpp_reader *pfile, cpp_token *token, const unsigned char *from, in save_comment()
702 run->base = XNEWVEC (cpp_token, count); in _cpp_init_tokenrun()
725 cpp_token *
[all …]
H A Dexpr.c33 const cpp_token *token; /* The token forming op (for diagnostics). */
61 static cpp_num eval_token (cpp_reader *, const cpp_token *);
161 cpp_classify_number (cpp_reader *pfile, const cpp_token *token) in cpp_classify_number()
367 cpp_interpret_integer (cpp_reader *pfile, const cpp_token *token, in cpp_interpret_integer()
525 const cpp_token *token; in parse_defined()
553 cpp_token op; in parse_defined()
590 eval_token (cpp_reader *pfile, const cpp_token *token) in eval_token()
H A Derrors.c157 cpp_token *t; in cpp_error()
/openbsd-src/gnu/usr.bin/gcc/gcc/
H A Dcppmacro.c34 const cpp_token **first; /* First token in unexpanded argument. */
35 const cpp_token **expanded; /* Macro-expanded argument. */
36 const cpp_token *stringified; /* Stringified argument. */
46 PARAMS ((cpp_reader *, cpp_hashnode *, const cpp_token *, unsigned int));
49 const cpp_token **, unsigned int));
52 static const cpp_token *padding_token
53 PARAMS ((cpp_reader *, const cpp_token *));
55 static const cpp_token *new_string_token PARAMS ((cpp_reader *, uchar *,
57 static const cpp_token *stringify_arg PARAMS ((cpp_reader *, macro_arg *));
58 static void paste_all_tokens PARAMS ((cpp_reader *, const cpp_token *));
[all …]
H A Dcpplib.h40 typedef struct cpp_token cpp_token; typedef
176 struct cpp_token struct
186 const cpp_token *source; /* Inherit padding from this token. */ argument
416 void (*line_change) PARAMS ((cpp_reader *, const cpp_token *, int));
419 const unsigned char *, const cpp_token *));
567 extern unsigned int cpp_token_len PARAMS ((const cpp_token *));
569 const cpp_token *));
570 extern unsigned char *cpp_spell_token PARAMS ((cpp_reader *, const cpp_token *,
576 extern int cpp_avoid_paste PARAMS ((cpp_reader *, const cpp_token *,
577 const cpp_token *));
[all …]
H A Dcpphash.h82 cpp_token *tokens;
158 const cpp_token *token;
159 const cpp_token **ptoken;
167 cpp_token *base, *limit;
269 const cpp_token *prev; /* Previous token. */
270 const cpp_token *source; /* Source token for spacing. */
378 cpp_token *cur_token;
407 cpp_token avoid_paste;
408 cpp_token eof;
523 const cpp_token *,
[all …]
H A Dcpplib.c34 cpp_token first[1];
105 static const cpp_token *glue_header_name PARAMS ((cpp_reader *));
106 static const cpp_token *parse_include PARAMS ((cpp_reader *));
127 static const cpp_token *get_token_no_padding PARAMS ((cpp_reader *));
128 static const cpp_token *get__Pragma_string PARAMS ((cpp_reader *));
350 const cpp_token *dname;
485 const cpp_token *token = _cpp_lex_token (pfile);
565 static const cpp_token *
569 cpp_token *header = NULL;
570 const cpp_token *token;
[all …]
H A Dscan-decls.c27 static const cpp_token *get_a_token PARAMS ((cpp_reader *));
45 static const cpp_token *
51 const cpp_token *result = cpp_get_token (pfile);
104 cpp_token prev_id;
105 const cpp_token *token;
H A Dscan.h53 struct cpp_token;
63 extern void recognized_function _PARAMS((const struct cpp_token *,
65 extern void recognized_extern _PARAMS((const struct cpp_token *));
H A Dc-lex.c73 static tree interpret_integer PARAMS ((const cpp_token *, unsigned int));
74 static tree interpret_float PARAMS ((const cpp_token *, unsigned int));
81 static tree lex_charconst PARAMS ((const cpp_token *));
84 static void cb_line_change PARAMS ((cpp_reader *, const cpp_token *, int));
247 const cpp_token *token;
323 const cpp_token *s;
675 const cpp_token *tok;
809 const cpp_token *token; in interpret_integer()
889 const cpp_token *token; in interpret_float()
1056 const cpp_token *token; in lex_charconst()
H A Dcpplex.c77 static void parse_string PARAMS ((cpp_reader *, cpp_token *, cppchar_t));
79 static void save_comment PARAMS ((cpp_reader *, cpp_token *, const uchar *,
96 const cpp_token *token; in cpp_ideq()
632 cpp_token *token;
736 cpp_token *token;
782 run->base = xnewvec (cpp_token, count);
806 cpp_token *
810 cpp_token *old, *result;
828 const cpp_token *
832 cpp_token *result;
[all …]
H A Dcppmain.c45 static void cb_line_change PARAMS ((cpp_reader *, const cpp_token *, int));
49 const unsigned char *, const cpp_token *));
146 const cpp_token *token = cpp_get_token (pfile);
286 const cpp_token *token;
361 const cpp_token *header;
H A Dcppexp.c33 const cpp_token *token; /* The token forming op (for diagnostics). */
64 static cpp_num eval_token PARAMS ((cpp_reader *, const cpp_token *));
152 const cpp_token *token;
340 const cpp_token *token;
503 const cpp_token *token;
531 cpp_token op;
570 const cpp_token *token;
H A Dcppfiles.c128 find_include_file PARAMS ((cpp_reader *, const cpp_token *,
571 const cpp_token *header;
707 const cpp_token *header;
733 const cpp_token *header;
/openbsd-src/gnu/gcc/libcpp/include/
H A Dcpplib.h38 typedef struct cpp_token cpp_token; typedef
191 struct cpp_token GTY(())
208 cpp_token * GTY ((tag ("CPP_TOKEN_FLD_SOURCE"))) source;
222 extern enum cpp_token_fld_kind cpp_token_val_index (cpp_token *tok);
457 void (*line_change) (cpp_reader *, const cpp_token *, int);
467 const char *, int, const cpp_token **);
671 extern unsigned int cpp_token_len (const cpp_token *);
672 extern unsigned char *cpp_token_as_text (cpp_reader *, const cpp_token *);
673 extern unsigned char *cpp_spell_token (cpp_reader *, const cpp_token *,
679 extern int cpp_avoid_paste (cpp_reader *, const cpp_token *,
[all …]
H A Dcpp-id-data.h32 cpp_token GTY ((length ("%h.count"))) first[1];
51 cpp_token * GTY ((tag ("0"), length ("%0.count"))) tokens;
/openbsd-src/gnu/gcc/gcc/
H A Dscan-decls.c29 static const cpp_token *get_a_token (cpp_reader *);
47 static const cpp_token *
52 const cpp_token *result = cpp_get_token (pfile); in get_a_token()
102 cpp_token prev_id; in scan_decls()
103 const cpp_token *token; in scan_decls()
H A Dc-lex.c62 static tree interpret_integer (const cpp_token *, unsigned int);
63 static tree interpret_float (const cpp_token *, unsigned int);
68 static enum cpp_ttype lex_string (const cpp_token *, tree *, bool);
69 static tree lex_charconst (const cpp_token *);
72 static void cb_line_change (cpp_reader *, const cpp_token *, int);
198 cb_line_change (cpp_reader * ARG_UNUSED (pfile), const cpp_token *token, in cb_line_change()
282 const cpp_token *s; in cb_def_pragma()
334 const cpp_token *tok; in c_lex_with_flags()
555 interpret_integer (const cpp_token *token, unsigned int flags) in interpret_integer()
635 interpret_float (const cpp_token *token, unsigned int flags) in interpret_float()
[all …]
H A Dscan.h45 struct cpp_token;
54 extern void recognized_function (const struct cpp_token *,
56 extern void recognized_extern (const struct cpp_token *);
H A Dc-ppoutput.c35 const cpp_token *prev; /* Previous token. */
36 const cpp_token *source; /* Source token for spacing. */
53 static void cb_line_change (cpp_reader *, const cpp_token *, int);
57 const char *, int, const cpp_token **);
143 const cpp_token *token = cpp_get_token (pfile); in scan_translation_unit()
276 cb_line_change (cpp_reader *pfile, const cpp_token *token, in cb_line_change()
343 const cpp_token **comments) in cb_include()
H A Dfix-header.c505 recognized_extern (const cpp_token *name) in recognized_extern()
525 recognized_function (const cpp_token *fname, unsigned int line, int kind, in recognized_function()
694 const cpp_token *t = cpp_get_token (scan_in); in read_scan_file()
/openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/gcc.dg/
H A Duninit-2.c14 enum cpp_token enum
19 extern enum cpp_token macarg (struct cpp_reader *, int);
28 … enum cpp_token token; /* { dg-bogus "token" "uninitialized variable warning" { xfail *-*-* } } */ in macroexpand()

12