Home
last modified time | relevance | path

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

/NextBSD/contrib/gcclibs/libcpp/
HDmacro.c35 const cpp_token **first; /* First token in unexpanded argument. */
36 const cpp_token **expanded; /* Macro-expanded argument. */
37 const cpp_token *stringified; /* Stringified argument. */
47 const cpp_token **, unsigned int);
50 static const cpp_token *padding_token (cpp_reader *, const cpp_token *);
52 static const cpp_token *new_string_token (cpp_reader *, uchar *, unsigned int);
53 static const cpp_token *stringify_arg (cpp_reader *, macro_arg *);
54 static void paste_all_tokens (cpp_reader *, const cpp_token *);
55 static bool paste_tokens (cpp_reader *, const cpp_token **, const cpp_token *);
63 static cpp_token *alloc_expansion_token (cpp_reader *, cpp_macro *);
[all …]
HDinternal.h122 const cpp_token *token;
123 const cpp_token **ptoken;
131 cpp_token *base, *limit;
345 cpp_token directive_result;
381 cpp_token *cur_token;
408 cpp_token avoid_paste;
409 cpp_token eof;
519 const cpp_token *, unsigned int);
553 extern cpp_token *_cpp_temp_token (cpp_reader *);
554 extern const cpp_token *_cpp_lex_token (cpp_reader *);
[all …]
HDdirectives.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()
514 const cpp_token *token = _cpp_lex_token (pfile); in lex_macro_node()
[all …]
HDlex.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()
446 const cpp_token *token, in warn_about_normalization()
600 create_literal (cpp_reader *pfile, cpp_token *token, const uchar *base, in create_literal()
620 lex_string (cpp_reader *pfile, cpp_token *token, const uchar *base) in lex_string()
676 save_comment (cpp_reader *pfile, cpp_token *token, const unsigned char *from, in save_comment()
719 run->base = XNEWVEC (cpp_token, count); in _cpp_init_tokenrun()
742 cpp_token *
[all …]
HDexpr.c33 const cpp_token *token; /* The token forming op (for diagnostics). */
61 static cpp_num eval_token (cpp_reader *, const cpp_token *);
164 cpp_classify_number (cpp_reader *pfile, const cpp_token *token) in cpp_classify_number()
370 cpp_interpret_integer (cpp_reader *pfile, const cpp_token *token, in cpp_interpret_integer()
528 const cpp_token *token; in parse_defined()
556 cpp_token op; in parse_defined()
593 eval_token (cpp_reader *pfile, const cpp_token *token) in eval_token()
HDerrors.c157 cpp_token *t; in cpp_error()
HDinit.c513 const cpp_token *token, *token1; in read_original_filename()
544 const cpp_token *hash, *token; in read_original_directory()
HDChangeLog137 (struct cpp_token): Add val.pragma.
152 * include/cpplib.h: Add PURE_ZERO to flags for the cpp_token structure.
226 include callback: cpp_token list.
834 (struct cpp_token): Add GTY markers.
HDcharset.c1500 cpp_interpret_charconst (cpp_reader *pfile, const cpp_token *token, in cpp_interpret_charconst()
/NextBSD/contrib/gcclibs/libcpp/include/
HDcpplib.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);
465 void (*line_change) (cpp_reader *, const cpp_token *, int);
475 const char *, int, const cpp_token **);
684 extern unsigned int cpp_token_len (const cpp_token *);
685 extern unsigned char *cpp_token_as_text (cpp_reader *, const cpp_token *);
686 extern unsigned char *cpp_spell_token (cpp_reader *, const cpp_token *,
692 extern int cpp_avoid_paste (cpp_reader *, const cpp_token *,
[all …]
HDcpp-id-data.h32 cpp_token GTY ((length ("%h.count"))) first[1];
51 cpp_token * GTY ((tag ("0"), length ("%0.count"))) tokens;
/NextBSD/contrib/gcc/
HDscan-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()
HDc-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 …]
HDscan.h45 struct cpp_token;
54 extern void recognized_function (const struct cpp_token *,
56 extern void recognized_extern (const struct cpp_token *);
HDc-ppoutput.c35 const cpp_token *prev; /* Previous token. */
36 const cpp_token *source; /* Source token for spacing. */
55 static void cb_line_change (cpp_reader *, const cpp_token *, int);
59 const char *, int, const cpp_token **);
148 const cpp_token *token = cpp_get_token (pfile); in scan_translation_unit()
301 cb_line_change (cpp_reader *pfile, const cpp_token *token, in cb_line_change()
368 const cpp_token **comments) in cb_include()
HDfix-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()
HDChangeLog-20003879 (struct cpp_token): Delete integer.
4594 * cpplib.h (struct cpp_token): Replace aux with c and arg_no.
5245 (struct cpp_token): Delete line and col members.
9450 * c-common.c: Don't define parse_options, cpp_token, yy_cur,
13731 (cpp_token flags): Add NAMED_OP.
14667 (struct cpp_token): Rename 'name' field to 'str'. Add 'node'
14970 * scan.h: Declare struct cpp_token. Update prototypes.
17462 (spell_token): Take a const cpp_token *.
21369 (struct cpp_name, cpp_token, cpp_toklist): New data
22243 cpp_token with cpp_ttype everywhere.
[all …]
HDChangeLog-200310155 * cpplib.h (struct cpp_token): Change type of field line to fileline.
25626 (struct cpp_token): Remove member c.
25742 * c-ppoutput.c (cb_include): Don't take a cpp_token.
25744 (find_include_file): Don't take a cpp_token. Check for empty
25746 (_cpp_execute_include, _cpp_compare_file_date): Don't take a cpp_token.
25749 * cpplib.c (glue_header_name): Return the file name, not a cpp_token.
HDChangeLog-200110096 (struct cpp_token): New union member source.
11046 (struct cpp_token): Remove output_line.
15755 * cpplib.h (struct cpp_token): Add line and column entries.
22422 (cpp_hashnode, cpp_token, NODE_LEN, NODE_NAME,
HDChangeLog-199911631 * c-lex.c (init_parse): Set cpp_token to CPP_DIRECTIVE.
12717 * c-common.c (cpp_token): Make non-static.
HDChangeLog-199811662 * c-common.c (parse_in,parse_options,cpp_token): Declare for cpplib.
HDChangeLog-200442266 * cpplib.h (struct cpp_token): Rename line field to src_loc.
42274 (_cpp_temp_token): Replace cpp_token's line+col fields by src_loc.
/NextBSD/contrib/gcc/doc/
HDcppinternals.texi674 normally. The @code{cpp_token} structure contains a flags byte, and one
804 The @code{cpp_token} structure contains @code{line} and @code{col}
/NextBSD/contrib/gcc/cp/
HDChangeLog-19994304 (init_parse): Set cpp_token to CPP_DIRECTIVE.