aboutsummaryrefslogtreecommitdiff
path: root/gcc/cpphash.h
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.demon.co.uk>2002-06-09 20:04:17 +0000
committerNeil Booth <neil@gcc.gnu.org>2002-06-09 20:04:17 +0000
commit1ce676a061d91b434a62d90d7a2f5d8fdf07e8af (patch)
treea2b5349f1ee2ab348cfc3c37c8f4c9a4ca8a6b1b /gcc/cpphash.h
parent25f2e176414291186a206bb5f7cdc3e98563b38b (diff)
downloadgcc-1ce676a061d91b434a62d90d7a2f5d8fdf07e8af.zip
gcc-1ce676a061d91b434a62d90d7a2f5d8fdf07e8af.tar.gz
gcc-1ce676a061d91b434a62d90d7a2f5d8fdf07e8af.tar.bz2
cpphash.h (_cpp_push_text_context): Update.
* cpphash.h (_cpp_push_text_context): Update. (_cpp_arguments_ok): New. * cppmacro.c (_cpp_arguments_ok): New, split out from... (collect_args): ...here. (_cpp_push_text_context): Change inputs. * cpptrad.c (struct fun_macro, maybe_start_funlike, save_argument, replace_args_and_push): New. (lex_identifier, _cpp_lex_identifier_trad, scan_parameters): Don't use IS macros directly. (scan_out_logical_line): Handle function-like macro argument collection. (push_replacement_text): Update. (replacement_length): Remove. (_cpp_create_trad_definition): Don't skip whitespace before checking for '('. From-SVN: r54412
Diffstat (limited to 'gcc/cpphash.h')
-rw-r--r--gcc/cpphash.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/cpphash.h b/gcc/cpphash.h
index 9a4915d..6baf211 100644
--- a/gcc/cpphash.h
+++ b/gcc/cpphash.h
@@ -438,9 +438,12 @@ extern void _cpp_free_definition PARAMS ((cpp_hashnode *));
extern bool _cpp_create_definition PARAMS ((cpp_reader *, cpp_hashnode *));
extern void _cpp_pop_context PARAMS ((cpp_reader *));
extern void _cpp_push_text_context PARAMS ((cpp_reader *, cpp_hashnode *,
- const uchar *, const uchar*));
+ const uchar *, size_t));
extern bool _cpp_save_parameter PARAMS ((cpp_reader *, cpp_macro *,
cpp_hashnode *));
+extern bool _cpp_arguments_ok PARAMS ((cpp_reader *, cpp_macro *,
+ const cpp_hashnode *,
+ unsigned int));
/* In cpphash.c */
extern void _cpp_init_hashtable PARAMS ((cpp_reader *, hash_table *));