diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 1999-10-03 16:08:31 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 1999-10-03 16:08:31 +0000 |
commit | 93868d11a61ed7c903a112b9a29b43907220f51a (patch) | |
tree | 9f17d331eaad83eee979c2f468cf2533e2d5fe61 /gcc/c-lex.c | |
parent | 807625cf45d49ff58c333a0ad826f267d1f45a04 (diff) | |
download | gcc-93868d11a61ed7c903a112b9a29b43907220f51a.zip gcc-93868d11a61ed7c903a112b9a29b43907220f51a.tar.gz gcc-93868d11a61ed7c903a112b9a29b43907220f51a.tar.bz2 |
alias.c (nonlocal_reference_p): Add static prototype.
* 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.
From-SVN: r29782
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 55f9acb..f8c9158 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; { |