Home
last modified time | relevance | path

Searched refs:cpp_reader (Results 1 – 25 of 122) sorted by relevance

12345

/openbsd-src/gnu/gcc/libcpp/include/
H A Dcpplib.h35 typedef struct cpp_reader cpp_reader; typedef
451 typedef const char *(*missing_header_cb)(cpp_reader *, const char *header, cpp_dir **);
457 void (*line_change) (cpp_reader *, const cpp_token *, int);
463 void (*file_change) (cpp_reader *, const struct line_map *);
465 void (*dir_change) (cpp_reader *, const char *);
466 void (*include) (cpp_reader *, unsigned int, const unsigned char *,
468 void (*define) (cpp_reader *, unsigned int, cpp_hashnode *);
469 void (*undef) (cpp_reader *, unsigned int, cpp_hashnode *);
470 void (*ident) (cpp_reader *, unsigned int, const cpp_string *);
471 void (*def_pragma) (cpp_reader *, unsigned int);
[all …]
/openbsd-src/gnu/gcc/libcpp/
H A Dinternal.h105 extern _cpp_buff *_cpp_get_buff (cpp_reader *, size_t);
106 extern void _cpp_release_buff (cpp_reader *, _cpp_buff *);
107 extern void _cpp_extend_buff (cpp_reader *, _cpp_buff **, size_t);
108 extern _cpp_buff *_cpp_append_extend_buff (cpp_reader *, _cpp_buff *, size_t);
110 extern unsigned char *_cpp_aligned_alloc (cpp_reader *, size_t);
111 extern unsigned char *_cpp_unaligned_alloc (cpp_reader *, size_t);
310 struct cpp_reader struct
482 static inline int cpp_in_system_header (cpp_reader *);
484 cpp_in_system_header (cpp_reader *pfile) in cpp_in_system_header()
492 extern int _cpp_begin_message (cpp_reader *, int,
[all …]
H A Ddirectives.c42 typedef void (*pragma_cb) (cpp_reader *);
79 typedef void (*directive_handler) (cpp_reader *);
92 static void skip_rest_of_line (cpp_reader *);
93 static void check_eol (cpp_reader *);
94 static void start_directive (cpp_reader *);
95 static void prepare_directive_trad (cpp_reader *);
96 static void end_directive (cpp_reader *, int);
97 static void directive_diagnostics (cpp_reader *, const directive *, int);
98 static void run_directive (cpp_reader *, int, const char *, size_t);
99 static char *glue_header_name (cpp_reader *);
[all …]
H A Dfiles.c151 static bool pch_open_file (cpp_reader *pfile, _cpp_file *file,
153 static bool find_file_in_dir (cpp_reader *pfile, _cpp_file *file,
155 static bool read_file_guts (cpp_reader *pfile, _cpp_file *file);
156 static bool read_file (cpp_reader *pfile, _cpp_file *file);
157 static bool should_stack_file (cpp_reader *, _cpp_file *file, bool import);
158 static struct cpp_dir *search_path_head (cpp_reader *, const char *fname,
161 static void open_file_failed (cpp_reader *pfile, _cpp_file *file, int);
164 static _cpp_file *make_cpp_file (cpp_reader *, cpp_dir *, const char *fname);
166 static cpp_dir *make_cpp_dir (cpp_reader *, const char *dir_name, int sysp);
167 static void allocate_file_hash_entries (cpp_reader *pfile);
[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 *);
48 static cpp_context *next_context (cpp_reader *);
49 static const cpp_token *padding_token (cpp_reader *, const cpp_token *);
50 static void expand_arg (cpp_reader *, macro_arg *);
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 *);
[all …]
H A Dinit.c30 static void mark_named_operators (cpp_reader *);
31 static void read_original_filename (cpp_reader *);
32 static void read_original_directory (cpp_reader *);
33 static void post_options (cpp_reader *);
99 cpp_set_lang (cpp_reader *pfile, enum c_lang lang) in cpp_set_lang()
137 cpp_reader *
141 cpp_reader *pfile; in cpp_create_reader()
146 pfile = XCNEW (cpp_reader); in cpp_create_reader()
231 cpp_destroy (cpp_reader *pfile) in cpp_destroy()
335 mark_named_operators (cpp_reader *pfile) in mark_named_operators()
[all …]
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()
123 save_idents (cpp_reader *pfile ATTRIBUTE_UNUSED, cpp_hashnode *hn, void *ss_p) in save_idents()
193 cpp_save_state (cpp_reader *r, FILE *f) in cpp_save_state()
210 count_defs (cpp_reader *pfile ATTRIBUTE_UNUSED, cpp_hashnode *hn, void *ss_p) in count_defs()
[all …]
/openbsd-src/gnu/usr.bin/gcc/gcc/
H A Dcpplib.h36 typedef struct cpp_reader cpp_reader; typedef
416 void (*line_change) PARAMS ((cpp_reader *, const cpp_token *, int));
417 void (*file_change) PARAMS ((cpp_reader *, const struct line_map *));
418 void (*include) PARAMS ((cpp_reader *, unsigned int,
420 void (*define) PARAMS ((cpp_reader *, unsigned int, cpp_hashnode *));
421 void (*undef) PARAMS ((cpp_reader *, unsigned int, cpp_hashnode *));
422 void (*ident) PARAMS ((cpp_reader *, unsigned int, const cpp_string *));
423 void (*def_pragma) PARAMS ((cpp_reader *, unsigned int));
426 void (*register_builtins) PARAMS ((cpp_reader *));
500 extern cpp_reader *cpp_create_reader PARAMS ((enum c_lang));
[all …]
H A Dcpphash.h120 extern _cpp_buff *_cpp_get_buff PARAMS ((cpp_reader *, size_t));
121 extern void _cpp_release_buff PARAMS ((cpp_reader *, _cpp_buff *));
122 extern void _cpp_extend_buff PARAMS ((cpp_reader *, _cpp_buff **, size_t));
123 extern _cpp_buff *_cpp_append_extend_buff PARAMS ((cpp_reader *, _cpp_buff *,
126 extern unsigned char *_cpp_aligned_alloc PARAMS ((cpp_reader *, size_t));
127 extern unsigned char *_cpp_unaligned_alloc PARAMS ((cpp_reader *, size_t));
336 struct cpp_reader struct
495 extern int _cpp_begin_message PARAMS ((cpp_reader *, int,
500 extern bool _cpp_create_definition PARAMS ((cpp_reader *, cpp_hashnode *));
501 extern void _cpp_pop_context PARAMS ((cpp_reader *));
[all …]
H A Dcpplib.c50 typedef void (*pragma_cb) PARAMS ((cpp_reader *));
83 typedef void (*directive_handler) PARAMS ((cpp_reader *));
96 static void skip_rest_of_line PARAMS ((cpp_reader *));
97 static void check_eol PARAMS ((cpp_reader *));
98 static void start_directive PARAMS ((cpp_reader *));
99 static void prepare_directive_trad PARAMS ((cpp_reader *));
100 static void end_directive PARAMS ((cpp_reader *, int));
102 PARAMS ((cpp_reader *, const directive *, int));
103 static void run_directive PARAMS ((cpp_reader *, int,
105 static const cpp_token *glue_header_name PARAMS ((cpp_reader *));
[all …]
H A Dcppmain.c29 static void setup_callbacks PARAMS ((cpp_reader *));
32 static void scan_translation_unit PARAMS ((cpp_reader *));
33 static void scan_translation_unit_trad PARAMS ((cpp_reader *));
34 static void account_for_newlines PARAMS ((cpp_reader *, const uchar *,
36 static int dump_macro PARAMS ((cpp_reader *, cpp_hashnode *, void *));
38 static void print_line PARAMS ((cpp_reader *, const struct line_map *,
40 static void maybe_print_line PARAMS ((cpp_reader *, const struct line_map *,
45 static void cb_line_change PARAMS ((cpp_reader *, const cpp_token *, int));
46 static void cb_define PARAMS ((cpp_reader *, unsigned int, cpp_hashnode *));
47 static void cb_undef PARAMS ((cpp_reader *, unsigned int, cpp_hashnode *));
[all …]
H A Dc-pragma.h29 struct cpp_reader;
30 extern struct cpp_reader* parse_in;
56 typedef struct cpp_reader cpp_reader; typedef
58 extern void cpp_register_pragma PARAMS ((cpp_reader *,
60 void (*) PARAMS ((cpp_reader *))));
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 *));
51 static cpp_context *next_context PARAMS ((cpp_reader *));
53 PARAMS ((cpp_reader *, const cpp_token *));
54 static void expand_arg PARAMS ((cpp_reader *, macro_arg *));
55 static const cpp_token *new_string_token PARAMS ((cpp_reader *, uchar *,
57 static const cpp_token *stringify_arg PARAMS ((cpp_reader *, macro_arg *));
[all …]
H A Dcppfiles.c121 PARAMS ((cpp_reader *, const char *));
123 static char *remap_filename PARAMS ((cpp_reader *, char *,
125 static struct search_path *search_from PARAMS ((cpp_reader *,
128 find_include_file PARAMS ((cpp_reader *, const cpp_token *,
130 static struct include_file *open_file PARAMS ((cpp_reader *, const char *));
131 static int read_include_file PARAMS ((cpp_reader *, struct include_file *));
132 static bool stack_include_file PARAMS ((cpp_reader *, struct include_file *));
136 static splay_tree_node find_or_create_entry PARAMS ((cpp_reader *,
138 static void handle_missing_header PARAMS ((cpp_reader *, const char *, int));
155 cpp_reader *pfile; in _cpp_init_includes()
[all …]
H A Dcppinit.c50 typedef void (* cl_directive_handler) PARAMS ((cpp_reader *, const char *));
89 static void path_include PARAMS ((cpp_reader *,
92 static void init_builtins PARAMS ((cpp_reader *));
93 static void mark_named_operators PARAMS ((cpp_reader *));
94 static void append_include_chain PARAMS ((cpp_reader *,
96 static struct search_path * remove_dup_dir PARAMS ((cpp_reader *,
99 static struct search_path * remove_dup_nonsys_dirs PARAMS ((cpp_reader *,
102 static struct search_path * remove_dup_dirs PARAMS ((cpp_reader *,
104 static void merge_include_chains PARAMS ((cpp_reader *));
105 static bool push_include PARAMS ((cpp_reader *,
[all …]
H A Dcpperror.c32 static void print_location PARAMS ((cpp_reader *, unsigned int, unsigned int));
40 cpp_reader *pfile; in print_location()
74 cpp_reader *pfile; in _cpp_begin_message()
129 cpp_error VPARAMS ((cpp_reader * pfile, int level, const char *msgid, ...)) in cpp_error()
134 VA_FIXEDARG (ap, cpp_reader *, pfile); in cpp_error()
165 cpp_error_with_line VPARAMS ((cpp_reader *pfile, int level, in cpp_error_with_line()
170 VA_FIXEDARG (ap, cpp_reader *, pfile); in cpp_error_with_line()
184 cpp_reader *pfile; in cpp_errno()
H A Dcpplex.c64 static void handle_newline PARAMS ((cpp_reader *));
65 static cppchar_t skip_escaped_newlines PARAMS ((cpp_reader *));
66 static cppchar_t get_effective_char PARAMS ((cpp_reader *));
68 static int skip_block_comment PARAMS ((cpp_reader *));
69 static int skip_line_comment PARAMS ((cpp_reader *));
70 static void adjust_column PARAMS ((cpp_reader *));
71 static int skip_whitespace PARAMS ((cpp_reader *, cppchar_t));
72 static cpp_hashnode *parse_identifier PARAMS ((cpp_reader *));
73 static uchar *parse_slow PARAMS ((cpp_reader *, const uchar *, int,
75 static void parse_number PARAMS ((cpp_reader *, cpp_string *, int));
[all …]
H A Dcpptrad.c82 static const uchar *handle_newline PARAMS ((cpp_reader *, const uchar *));
83 static const uchar *skip_escaped_newlines PARAMS ((cpp_reader *,
85 static const uchar *skip_whitespace PARAMS ((cpp_reader *, const uchar *,
87 static cpp_hashnode *lex_identifier PARAMS ((cpp_reader *, const uchar *));
88 static const uchar *copy_comment PARAMS ((cpp_reader *, const uchar *, int));
89 static void scan_out_logical_line PARAMS ((cpp_reader *pfile, cpp_macro *));
90 static void check_output_buffer PARAMS ((cpp_reader *, size_t));
91 static void push_replacement_text PARAMS ((cpp_reader *, cpp_hashnode *));
92 static bool scan_parameters PARAMS ((cpp_reader *, cpp_macro *));
93 static bool recursive_macro PARAMS ((cpp_reader *, cpp_hashnode *));
[all …]
/openbsd-src/gnu/gcc/gcc/
H A Dc-ppoutput.c43 static void scan_translation_unit (cpp_reader *);
44 static void scan_translation_unit_trad (cpp_reader *);
46 static int dump_macro (cpp_reader *, cpp_hashnode *, void *);
53 static void cb_line_change (cpp_reader *, const cpp_token *, int);
54 static void cb_define (cpp_reader *, source_location, cpp_hashnode *);
55 static void cb_undef (cpp_reader *, source_location, cpp_hashnode *);
56 static void cb_include (cpp_reader *, source_location, const unsigned char *,
58 static void cb_ident (cpp_reader *, source_location, const cpp_string *);
59 static void cb_def_pragma (cpp_reader *, source_location);
60 static void cb_read_pch (cpp_reader *pfile, const char *name,
[all …]
/openbsd-src/gnu/gcc/gcc/config/v850/
H A Dv850-protos.h63 extern void ghs_pragma_section (struct cpp_reader *);
64 extern void ghs_pragma_interrupt (struct cpp_reader *);
65 extern void ghs_pragma_starttda (struct cpp_reader *);
66 extern void ghs_pragma_startsda (struct cpp_reader *);
67 extern void ghs_pragma_startzda (struct cpp_reader *);
68 extern void ghs_pragma_endtda (struct cpp_reader *);
69 extern void ghs_pragma_endsda (struct cpp_reader *);
70 extern void ghs_pragma_endzda (struct cpp_reader *);
H A Dv850-c.c116 ghs_pragma_section (cpp_reader * pfile ATTRIBUTE_UNUSED) in ghs_pragma_section()
195 ghs_pragma_interrupt (cpp_reader * pfile ATTRIBUTE_UNUSED) in ghs_pragma_interrupt()
206 ghs_pragma_starttda (cpp_reader * pfile ATTRIBUTE_UNUSED) in ghs_pragma_starttda()
217 ghs_pragma_startsda (cpp_reader * pfile ATTRIBUTE_UNUSED) in ghs_pragma_startsda()
228 ghs_pragma_startzda (cpp_reader * pfile ATTRIBUTE_UNUSED) in ghs_pragma_startzda()
239 ghs_pragma_endtda (cpp_reader * pfile ATTRIBUTE_UNUSED) in ghs_pragma_endtda()
250 ghs_pragma_endsda (cpp_reader * pfile ATTRIBUTE_UNUSED) in ghs_pragma_endsda()
261 ghs_pragma_endzda (cpp_reader * pfile ATTRIBUTE_UNUSED) in ghs_pragma_endzda()
/openbsd-src/gnu/usr.bin/gcc/gcc/config/v850/
H A Dv850-protos.h93 extern void ghs_pragma_section PARAMS ((cpp_reader *));
94 extern void ghs_pragma_interrupt PARAMS ((cpp_reader *));
95 extern void ghs_pragma_starttda PARAMS ((cpp_reader *));
96 extern void ghs_pragma_startsda PARAMS ((cpp_reader *));
97 extern void ghs_pragma_startzda PARAMS ((cpp_reader *));
98 extern void ghs_pragma_endtda PARAMS ((cpp_reader *));
99 extern void ghs_pragma_endsda PARAMS ((cpp_reader *));
100 extern void ghs_pragma_endzda PARAMS ((cpp_reader *));
H A Dv850-c.c115 cpp_reader *pfile ATTRIBUTE_UNUSED; in ghs_pragma_section()
195 cpp_reader *pfile ATTRIBUTE_UNUSED; in ghs_pragma_interrupt()
207 cpp_reader *pfile ATTRIBUTE_UNUSED; in ghs_pragma_starttda()
219 cpp_reader *pfile ATTRIBUTE_UNUSED; in ghs_pragma_startsda()
231 cpp_reader *pfile ATTRIBUTE_UNUSED; in ghs_pragma_startzda()
243 cpp_reader *pfile ATTRIBUTE_UNUSED; in ghs_pragma_endtda()
255 cpp_reader *pfile ATTRIBUTE_UNUSED; in ghs_pragma_endsda()
267 cpp_reader *pfile ATTRIBUTE_UNUSED; in ghs_pragma_endzda()
/openbsd-src/gnu/gcc/gcc/config/c4x/
H A Dc4x-c.c98 cpp_reader *pfile ATTRIBUTE_UNUSED; in c4x_pr_CODE_SECTION()
111 cpp_reader *pfile ATTRIBUTE_UNUSED; in c4x_pr_DATA_SECTION()
124 cpp_reader *pfile ATTRIBUTE_UNUSED; in c4x_pr_FUNC_IS_PURE()
135 cpp_reader *pfile ATTRIBUTE_UNUSED; in c4x_pr_FUNC_NEVER_RETURNS()
146 cpp_reader *pfile ATTRIBUTE_UNUSED; in c4x_pr_INTERRUPT()
159 cpp_reader *pfile ATTRIBUTE_UNUSED; in c4x_pr_ignored()
/openbsd-src/gnu/usr.bin/gcc/gcc/config/c4x/
H A Dc4x-c.c95 cpp_reader *pfile ATTRIBUTE_UNUSED; in c4x_pr_CODE_SECTION()
108 cpp_reader *pfile ATTRIBUTE_UNUSED; in c4x_pr_DATA_SECTION()
121 cpp_reader *pfile ATTRIBUTE_UNUSED; in c4x_pr_FUNC_IS_PURE()
132 cpp_reader *pfile ATTRIBUTE_UNUSED; in c4x_pr_FUNC_NEVER_RETURNS()
143 cpp_reader *pfile ATTRIBUTE_UNUSED; in c4x_pr_INTERRUPT()
156 cpp_reader *pfile ATTRIBUTE_UNUSED; in c4x_pr_ignored()

12345