Don't use C++ style comments in libcpp
authorDodji Seketeli <dodji@redhat.com>
Sun, 29 Apr 2012 16:27:08 +0000 (16:27 +0000)
committerDodji Seketeli <dodji@gcc.gnu.org>
Sun, 29 Apr 2012 16:27:08 +0000 (18:27 +0200)
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

libcpp/ChangeLog
libcpp/lex.c

index f7c330c514393905f76444f8091263c5d5ea4cd8..4b66c84174d4eeb9375df404b1fe7dff1bec1101 100644 (file)
@@ -1,3 +1,9 @@
+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>
 
        * include/cpplib.h (struct cpp_options): Add new field,
index 7e2671ef026f526f061a40017340fdf04ba5707f..c4dd6035c9bd58af9abc1f4483e6b0d58523d54f 100644 (file)
@@ -1561,7 +1561,7 @@ lex_raw_string (cpp_reader *pfile, cpp_token *token, const uchar *base,
         extension by other front ends such as clang. */
       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))
            cpp_warning_with_line (pfile, CPP_W_LITERAL_SUFFIX,
                                   token->src_loc, 0,
@@ -1692,7 +1692,7 @@ lex_string (cpp_reader *pfile, cpp_token *token, const uchar *base)
         extension by other front ends such as clang. */
       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))
            cpp_warning_with_line (pfile, CPP_W_LITERAL_SUFFIX,
                                   token->src_loc, 0,