diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 1999-09-02 03:13:16 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 1999-09-02 03:13:16 +0000 |
commit | f5984164b7bfb72abbe125532ac95581fd72668b (patch) | |
tree | 9eadea04e4ce16ec29f10e8d7e9ccd268f6f1711 /gcc/cp/gxx.gperf | |
parent | aea87e88e11f4cf9bee3542f3bb827c98b6a9342 (diff) | |
download | gcc-f5984164b7bfb72abbe125532ac95581fd72668b.zip gcc-f5984164b7bfb72abbe125532ac95581fd72668b.tar.gz gcc-f5984164b7bfb72abbe125532ac95581fd72668b.tar.bz2 |
gxx.gperf (hash, [...]): Add prototypes.
* gxx.gperf (hash, is_reserved_word): Add prototypes.
* init.c (build_vec_init): Initialize variable `try_block'.
* lex.c (init_parse): Call memcpy, not bcopy, to avoid casts.
Likewise for bzero/memset.
(token_getch, token_put_back): Add static prototypes. Remove
`inline' from the definitions.
(retrofit_lang_decl): Call memset, not bzero, to avoid casts.
From-SVN: r29042
Diffstat (limited to 'gcc/cp/gxx.gperf')
-rw-r--r-- | gcc/cp/gxx.gperf | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gcc/cp/gxx.gperf b/gcc/cp/gxx.gperf index 4c191c5..fab533d 100644 --- a/gcc/cp/gxx.gperf +++ b/gcc/cp/gxx.gperf @@ -1,7 +1,15 @@ %{ -/* Command-line: gperf -L KR-C -F ', 0, 0' -p -j1 -g -o -t -N is_reserved_word -k1,4,$,7 gplus.gperf */ +/* Command-line: gperf -L C -F ', 0, 0' -p -j1 -g -o -t -N is_reserved_word -k1,4,$,7 gplus.gperf */ %} struct resword { const char *name; short token; enum rid rid;}; +#ifdef __GNUC__ +__inline +#endif +static unsigned int hash PARAMS ((const char *, unsigned int)); +#ifdef __GNUC__ +__inline +#endif +struct resword *is_reserved_word PARAMS ((const char *, unsigned int)); %% __alignof, ALIGNOF, RID_UNUSED __alignof__, ALIGNOF, RID_UNUSED |