aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-tree.h
diff options
context:
space:
mode:
authorPaul Eggert <eggert@twinsun.com>1998-04-12 19:52:16 +0000
committerJeff Law <law@gcc.gnu.org>1998-04-12 13:52:16 -0600
commitbb72a0843b71be335863c0a177c612b5ffcb2b2e (patch)
tree4a100f9474ef02453ea6bf947858e68b2128c340 /gcc/c-tree.h
parent71922625f39fc4f5a3ae87e38810b818af878f81 (diff)
downloadgcc-bb72a0843b71be335863c0a177c612b5ffcb2b2e.zip
gcc-bb72a0843b71be335863c0a177c612b5ffcb2b2e.tar.gz
gcc-bb72a0843b71be335863c0a177c612b5ffcb2b2e.tar.bz2
This change is from an idea suggested by Arthur David Olson.
* c-common.c (decl_attributes, record_function_format, check_format_info, init_function_format_info): Add support for strftime format checking. (enum format_type): New type. (record_function_format): Now static, and takes value of type enum format_type instead of int. (time_char_table): New constant. (struct function_format_info): format_type member renamed from is_scan. (check_format_info): Use `warning' rather than sprintf followed by `warning', to avoid mishandling `%' in warnings. Change `pedwarn' to `warning', since these warnings do not necessarily mean the program does not conform to the C Standard, as the code need not be executed. * c-tree.h (record_function_format): Remove decl; no longer extern. * extend.texi: Add documentation for strftime format checking. From-SVN: r19151
Diffstat (limited to 'gcc/c-tree.h')
-rw-r--r--gcc/c-tree.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/gcc/c-tree.h b/gcc/c-tree.h
index 3e0e10a..d3884dc 100644
--- a/gcc/c-tree.h
+++ b/gcc/c-tree.h
@@ -162,7 +162,6 @@ extern void gen_aux_info_record PROTO((tree, int, int, int));
extern void declare_function_name PROTO((void));
extern void decl_attributes PROTO((tree, tree, tree));
extern void init_function_format_info PROTO((void));
-extern void record_function_format PROTO((tree, tree, int, int, int));
extern void check_function_format PROTO((tree, tree, tree));
/* Print an error message for invalid operands to arith operation CODE.
NOP_EXPR is used as a special case (see truthvalue_conversion). */