diff options
author | Joseph Myers <jsm28@cam.ac.uk> | 2000-08-21 20:38:35 +0100 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2000-08-21 20:38:35 +0100 |
commit | 5804a754e51fe8a475bb701a57997ee0cdb51fc0 (patch) | |
tree | 8730d3f18920ed07d8b2808ade31db763a22f512 /libjava/java | |
parent | 95adab8e110925c9f13fb4ff16afb942a62c2af6 (diff) | |
download | gcc-5804a754e51fe8a475bb701a57997ee0cdb51fc0.zip gcc-5804a754e51fe8a475bb701a57997ee0cdb51fc0.tar.gz gcc-5804a754e51fe8a475bb701a57997ee0cdb51fc0.tar.bz2 |
c-common.c (init_dollar_format_checking, [...]): New functions.
* c-common.c (init_dollar_format_checking,
maybe_read_dollar_number, finish_dollar_format_checking): New
functions.
(dollar_arguments_used, dollar_arguments_count,
dollar_first_arg_num, dollar_max_arg_used, dollar_format_warned):
New variables.
(check_format_info): Support $ formats for scanf and printf width
and precision. Always increment format_chars to advance past the
'*' of precision, not just when the format parameters are
available to check.
testsuite:
* gcc.dg/c90-printf-3.c, gcc.dg/c90-scanf-2.c,
gcc.dg/c90-scanf-3.c, gcc.dg/c90-scanf-4.c,
gcc.dg/c90-strftime-1.c, gcc.dg/c99-printf-3.c,
gcc.dg/c99-scanf-1.c, gcc.dg/c99-scanf-2.c, gcc.dg/c99-scanf-3.c,
gcc.dg/format-xopen-1.c: New tests.
From-SVN: r35856
Diffstat (limited to 'libjava/java')
0 files changed, 0 insertions, 0 deletions