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
This commit is contained in:
parent
9c08f7e6be
commit
980d86e9b4
2 changed files with 18 additions and 0 deletions
|
@ -1,5 +1,8 @@
|
|||
2000-07-31 Joseph S. Myers <jsm28@cam.ac.uk>
|
||||
|
||||
* c-common.c (init_function_format_info): Add C99 format functions
|
||||
in C99 mode.
|
||||
|
||||
* c-decl.c (get_parm_info): Don't treat 'const void', 'volatile
|
||||
void' or 'register void' as being the special case of 'void' alone
|
||||
in a parameter list.
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue