aboutsummaryrefslogtreecommitdiff
path: root/libio/fstream.h
diff options
context:
space:
mode:
authorZack Weinberg <zack@wolery.cumb.org>2000-01-27 22:29:07 +0000
committerZack Weinberg <zack@gcc.gnu.org>2000-01-27 22:29:07 +0000
commit75ec21db305f832534b2072c02a2a785c3cc0b4c (patch)
tree8fbdbe32865dcaea5f37fa4f80adc6849f91f96d /libio/fstream.h
parent73b5cdf98ad368b41766577395b2a5bbd91e3f1b (diff)
downloadgcc-75ec21db305f832534b2072c02a2a785c3cc0b4c.zip
gcc-75ec21db305f832534b2072c02a2a785c3cc0b4c.tar.gz
gcc-75ec21db305f832534b2072c02a2a785c3cc0b4c.tar.bz2
cppinit.c (cpp_handle_option): Recognize C++ comments under -std=gnu89.
* cppinit.c (cpp_handle_option): Recognize C++ comments under -std=gnu89. * cpplib.c (skip_block_comment, skip_line_comment): Split code out of... (skip_comment) ... here. Permit C++ comments in system headers always. Warn about C++ comments in user code under -std=gnu89 -pedantic. (copy_comment): Use skip_comment. (cpp_skip_hspace, cpp_get_token): skip_comment can no longer return EOF. (consider_directive_while_skipping, do_else, do_endif): Call validate_else unconditionally. (validate_else): Check CPP_PEDANTIC here. Accept non-comment text after the conditional in a system header. * cpplib.h (struct cpp_buffer): Add flag warned_cplusplus_comments. From-SVN: r31654
Diffstat (limited to 'libio/fstream.h')
0 files changed, 0 insertions, 0 deletions