aboutsummaryrefslogtreecommitdiff
path: root/libcpp
diff options
context:
space:
mode:
authorDodji Seketeli <dodji@redhat.com>2012-04-29 16:27:08 +0000
committerDodji Seketeli <dodji@gcc.gnu.org>2012-04-29 18:27:08 +0200
commit112448b4489ec5a631f22a3c28b814fcaf9fa92f (patch)
tree5aab809289c936125df3cbb55e8fb90737ff738e /libcpp
parent663b01340be8ddc23c48283db73afe956c99f6c3 (diff)
downloadgcc-112448b4489ec5a631f22a3c28b814fcaf9fa92f.zip
gcc-112448b4489ec5a631f22a3c28b814fcaf9fa92f.tar.gz
gcc-112448b4489ec5a631f22a3c28b814fcaf9fa92f.tar.bz2
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
Diffstat (limited to 'libcpp')
-rw-r--r--libcpp/ChangeLog6
-rw-r--r--libcpp/lex.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog
index f7c330c..4b66c84 100644
--- a/libcpp/ChangeLog
+++ b/libcpp/ChangeLog
@@ -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,
diff --git a/libcpp/lex.c b/libcpp/lex.c
index 7e2671e..c4dd603 100644
--- a/libcpp/lex.c
+++ b/libcpp/lex.c
@@ -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,