aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/util
diff options
context:
space:
mode:
authorJoseph Myers <jsm28@cam.ac.uk>2000-08-21 20:38:35 +0100
committerJoseph Myers <jsm28@gcc.gnu.org>2000-08-21 20:38:35 +0100
commit5804a754e51fe8a475bb701a57997ee0cdb51fc0 (patch)
tree8730d3f18920ed07d8b2808ade31db763a22f512 /libjava/java/util
parent95adab8e110925c9f13fb4ff16afb942a62c2af6 (diff)
downloadgcc-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/util')
0 files changed, 0 insertions, 0 deletions