diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-10-03 16:08:31 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-10-03 16:08:31 +0000 |
commit | 01ce7a1b4676cbabb411defe964313048ee6c8fd (patch) | |
tree | 9f17d331eaad83eee979c2f468cf2533e2d5fe61 /gcc/c-lex.c | |
parent | 4a8caefa1eca72aa2c1efb448b0ea69ec703fc19 (diff) | |
download | gcc-01ce7a1b4676cbabb411defe964313048ee6c8fd.tar.gz |
* alias.c (nonlocal_reference_p): Add static prototype.
* bitmap.c (bitmap_element_allocate): Prototype args in function
pointer cast.
* builtins.c (stabilize_va_list): Add static prototype.
(expand_builtin_va_arg): Constify a char*.
* c-lex.c (getch, put_back, extend_token_buffer_to,
read_line_number, token_getch, token_put_back): Add static
prototypes.
* c-parse.gperf (hash, is_reserved_word): Likewise.
* cccp.c (is_dir_separator): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29782 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-lex.c')
-rw-r--r-- | gcc/c-lex.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/gcc/c-lex.c b/gcc/c-lex.c index 55f9acb797a..f8c9158f548 100644 --- a/gcc/c-lex.c +++ b/gcc/c-lex.c @@ -90,6 +90,8 @@ struct putback_buffer { static struct putback_buffer putback = {NULL, 0, -1}; +static inline int getch PROTO ((void)); + static inline int getch () { @@ -102,6 +104,8 @@ getch () return getc (finput); } +static inline void put_back PROTO ((int)); + static inline void put_back (ch) int ch; @@ -162,6 +166,8 @@ static int skip_white_space PROTO((int)); static char *extend_token_buffer PROTO((const char *)); static int readescape PROTO((int *)); static void parse_float PROTO((PTR)); +static void extend_token_buffer_to PROTO((int)); +static int read_line_number PROTO((int *)); /* Do not insert generated code into the source, instead, include it. This allows us to build gcc automatically even for targets that @@ -1197,7 +1203,9 @@ parse_float (data) next token, which screws up feed_input. So just return a null character. */ -inline int +static inline int token_getch PROTO ((void)); + +static inline int token_getch () { #if USE_CPPLIB @@ -1207,7 +1215,9 @@ token_getch () return GETC (); } -inline void +static inline void token_put_back PROTO ((int)); + +static inline void token_put_back (ch) int ch; { |