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.
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);