diff options
author | David E. O'Brien <obrien@FreeBSD.org> | 2000-12-02 11:58:26 +0000 |
---|---|---|
committer | David E. O'Brien <obrien@FreeBSD.org> | 2000-12-02 11:58:26 +0000 |
commit | fc60994c8e80bb68ac6c7d312fcf85f01ce54af3 (patch) | |
tree | af1951cecbc7997a25134af25a3a882378070e15 /lang | |
parent | Allow the selection of the [sys]log facility to use. (diff) |
MF contrib/gcc/c-common.c rev 1.12:
Move our `null_format_ok' addition to the end of record_function_format()
and it's uses. This makes it easier to see our changes to the virgin source.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/egcs/files/patch-fa | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/lang/egcs/files/patch-fa b/lang/egcs/files/patch-fa index 7f5e0e611ae8..8393aafdfbf8 100644 --- a/lang/egcs/files/patch-fa +++ b/lang/egcs/files/patch-fa @@ -13,7 +13,7 @@ = TREE_VALUE (TREE_CHAIN (TREE_CHAIN (args))); int format_num; int first_arg_num; -+ int null_format_ok; ++ XXX:int null_format_ok; enum format_type format_type; tree argument; int arg_num; @@ -79,7 +79,7 @@ tree name; /* identifier such as "printf" */ tree assembler_name; /* optional mangled identifier (for C++) */ enum format_type format_type; /* type of format (printf, scanf, etc.) */ -+ int null_format_ok; /* TRUE if the format string may be NULL */ ++ XXX:int null_format_ok; /* TRUE if the format string may be NULL */ int format_num; /* number of format argument */ int first_arg_num; /* number of first arg (zero for varargs) */ } function_format_info; @@ -88,34 +88,34 @@ { record_function_format (get_identifier ("printf"), NULL_TREE, - printf_format_type, 1, 2); -+ printf_format_type, 0, 1, 2); ++ printf_format_type, 1, 2, 0); record_function_format (get_identifier ("fprintf"), NULL_TREE, - printf_format_type, 2, 3); -+ printf_format_type, 0, 2, 3); ++ printf_format_type, 2, 3, 0); record_function_format (get_identifier ("sprintf"), NULL_TREE, - printf_format_type, 2, 3); -+ printf_format_type, 0, 2, 3); ++ printf_format_type, 2, 3, 0); record_function_format (get_identifier ("scanf"), NULL_TREE, - scanf_format_type, 1, 2); -+ scanf_format_type, 0, 1, 2); ++ scanf_format_type, 1, 2, 0); record_function_format (get_identifier ("fscanf"), NULL_TREE, - scanf_format_type, 2, 3); -+ scanf_format_type, 0, 2, 3); ++ scanf_format_type, 2, 3, 0); record_function_format (get_identifier ("sscanf"), NULL_TREE, - scanf_format_type, 2, 3); -+ scanf_format_type, 0, 2, 3); ++ scanf_format_type, 2, 3, 0); record_function_format (get_identifier ("vprintf"), NULL_TREE, - printf_format_type, 1, 0); -+ printf_format_type, 0, 1, 0); ++ printf_format_type, 1, 0, 0); record_function_format (get_identifier ("vfprintf"), NULL_TREE, - printf_format_type, 2, 0); -+ printf_format_type, 0, 2, 0); ++ printf_format_type, 2, 0, 0); record_function_format (get_identifier ("vsprintf"), NULL_TREE, - printf_format_type, 2, 0); -+ printf_format_type, 0, 2, 0); ++ printf_format_type, 2, 0, 0); record_function_format (get_identifier ("strftime"), NULL_TREE, - strftime_format_type, 3, 0); -+ strftime_format_type, 0, 3, 0); ++ strftime_format_type, 3, 0, 0); record_international_format (get_identifier ("gettext"), NULL_TREE, 1); record_international_format (get_identifier ("dgettext"), NULL_TREE, 2); @@ -124,12 +124,12 @@ static void -record_function_format (name, assembler_name, format_type, -+record_function_format (name, assembler_name, format_type, null_format_ok, ++record_function_format (name, assembler_name, format_type, XXX:null_format_ok, format_num, first_arg_num) tree name; tree assembler_name; enum format_type format_type; -+ int null_format_ok; ++ XXX:int null_format_ok; int format_num; int first_arg_num; { @@ -137,7 +137,7 @@ } info->format_type = format_type; -+ info->null_format_ok = null_format_ok; ++ XXX:info->null_format_ok = null_format_ok; info->format_num = format_num; info->first_arg_num = first_arg_num; } |