From 980d86e9b4cfe0467ba30a928e0a5418e3a48410 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Mon, 31 Jul 2000 08:00:34 -0600 Subject: c-common.c (init_function_format_info): Add C99 format functions in C99 mode. * c-common.c (init_function_format_info): Add C99 format functions in C99 mode. From-SVN: r35380 --- gcc/c-common.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'gcc/c-common.c') diff --git a/gcc/c-common.c b/gcc/c-common.c index c7b5601..11f1649 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -1335,6 +1335,21 @@ init_function_format_info () record_function_format (get_identifier ("strftime"), NULL_TREE, strftime_format_type, 3, 0); + if (flag_isoc99) + { + /* ISO C99 adds the snprintf and vscanf family functions. */ + record_function_format (get_identifier ("snprintf"), NULL_TREE, + printf_format_type, 3, 4); + record_function_format (get_identifier ("vsnprintf"), NULL_TREE, + printf_format_type, 3, 0); + record_function_format (get_identifier ("vscanf"), NULL_TREE, + scanf_format_type, 1, 0); + record_function_format (get_identifier ("vfscanf"), NULL_TREE, + scanf_format_type, 2, 0); + record_function_format (get_identifier ("vsscanf"), NULL_TREE, + scanf_format_type, 2, 0); + } + record_international_format (get_identifier ("gettext"), NULL_TREE, 1); record_international_format (get_identifier ("dgettext"), NULL_TREE, 2); record_international_format (get_identifier ("dcgettext"), NULL_TREE, 2); -- cgit v1.1