Commit 112448b4 by Dodji Seketeli Committed by Dodji Seketeli

Don't use C++ style comments in libcpp

I noticed that the file lex.c had C++ style comments, which I believe
is against the coding standards of the project.

Fixed, tested and applied to master as per the obvious rule.

libcpp/

	* lex.c (lex_raw_string): Change C++ style comments into C
	style comments.
	(lex_string): Likewise.

From-SVN: r186946
parent 663b0134
2012-04-29 Dodji Seketeli <dodji@redhat.com>
* lex.c (lex_raw_string): Change C++ style comments into C style
comments.
(lex_string): Likewise.
2012-04-27 Ollie Wild <aaw@google.com> 2012-04-27 Ollie Wild <aaw@google.com>
* include/cpplib.h (struct cpp_options): Add new field, * include/cpplib.h (struct cpp_options): Add new field,
......
...@@ -1561,7 +1561,7 @@ lex_raw_string (cpp_reader *pfile, cpp_token *token, const uchar *base, ...@@ -1561,7 +1561,7 @@ lex_raw_string (cpp_reader *pfile, cpp_token *token, const uchar *base,
extension by other front ends such as clang. */ extension by other front ends such as clang. */
if (ISALPHA (*cur)) if (ISALPHA (*cur))
{ {
// Raise a warning, but do not consume subsequent tokens. /* Raise a warning, but do not consume subsequent tokens. */
if (CPP_OPTION (pfile, warn_literal_suffix)) if (CPP_OPTION (pfile, warn_literal_suffix))
cpp_warning_with_line (pfile, CPP_W_LITERAL_SUFFIX, cpp_warning_with_line (pfile, CPP_W_LITERAL_SUFFIX,
token->src_loc, 0, token->src_loc, 0,
...@@ -1692,7 +1692,7 @@ lex_string (cpp_reader *pfile, cpp_token *token, const uchar *base) ...@@ -1692,7 +1692,7 @@ lex_string (cpp_reader *pfile, cpp_token *token, const uchar *base)
extension by other front ends such as clang. */ extension by other front ends such as clang. */
if (ISALPHA (*cur)) if (ISALPHA (*cur))
{ {
// Raise a warning, but do not consume subsequent tokens. /* Raise a warning, but do not consume subsequent tokens. */
if (CPP_OPTION (pfile, warn_literal_suffix)) if (CPP_OPTION (pfile, warn_literal_suffix))
cpp_warning_with_line (pfile, CPP_W_LITERAL_SUFFIX, cpp_warning_with_line (pfile, CPP_W_LITERAL_SUFFIX,
token->src_loc, 0, token->src_loc, 0,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment