aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-common.h
diff options
context:
space:
mode:
authorZack Weinberg <zack@gcc.gnu.org>2003-03-22 03:28:39 +0000
committerZack Weinberg <zack@gcc.gnu.org>2003-03-22 03:28:39 +0000
commitd9b2742a3d4bfc03500e14e4e9bcc7ae9275a079 (patch)
treef2f70c0a43139b7fcdfc3aeacf5ad628d08890c3 /gcc/c-common.h
parentbea41393885329698043d1b7a22cb3e7a8791031 (diff)
downloadgcc-d9b2742a3d4bfc03500e14e4e9bcc7ae9275a079.zip
gcc-d9b2742a3d4bfc03500e14e4e9bcc7ae9275a079.tar.gz
gcc-d9b2742a3d4bfc03500e14e4e9bcc7ae9275a079.tar.bz2
c-common.c: Include intl.h.
* c-common.c: Include intl.h. (shadow_warning): Rewrite to allow better diagnostic translations. * c-common.h: Update prototype of shadow_warning. Declare sw_kind enum. * c-decl.c (warn_if_shadowing): Update calls to shadow_warning; use it throughout. * Makefile.in (c-common.o): Add intl.h. cp: * decl.c: Update calls to shadow_warning. po: * gcc.pot: Regenerate. From-SVN: r64699
Diffstat (limited to 'gcc/c-common.h')
-rw-r--r--gcc/c-common.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/c-common.h b/gcc/c-common.h
index b174f58..20c7c39 100644
--- a/gcc/c-common.h
+++ b/gcc/c-common.h
@@ -332,12 +332,13 @@ extern tree walk_stmt_tree PARAMS ((tree *,
void *));
extern void prep_stmt PARAMS ((tree));
extern void expand_stmt PARAMS ((tree));
-extern void shadow_warning PARAMS ((const char *,
- tree, tree));
extern tree c_begin_if_stmt PARAMS ((void));
extern tree c_begin_while_stmt PARAMS ((void));
extern void c_finish_while_stmt_cond PARAMS ((tree, tree));
+enum sw_kind { SW_PARAM = 0, SW_LOCAL, SW_GLOBAL };
+extern void shadow_warning PARAMS ((enum sw_kind, int,
+ const char *, tree));
/* Extra information associated with a DECL. Other C dialects extend
this structure in various ways. The C front-end only uses this