aboutsummaryrefslogtreecommitdiff
path: root/gcc/cpplib.c
diff options
context:
space:
mode:
authorAlexandre Oliva <oliva@lsd.ic.unicamp.br>2000-02-23 19:21:07 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2000-02-23 19:21:07 +0000
commit525bc95d4a71eef870aa511696aef58f752c5cac (patch)
tree8563639f4dd1a3dcf134a19e283b5f8ea189a1dd /gcc/cpplib.c
parent1cb8d58accf67dcaa8f9bdd07dc0467964d3fd4e (diff)
downloadgcc-525bc95d4a71eef870aa511696aef58f752c5cac.zip
gcc-525bc95d4a71eef870aa511696aef58f752c5cac.tar.gz
gcc-525bc95d4a71eef870aa511696aef58f752c5cac.tar.bz2
cpplib.h (enum cpp_token): Added CPP_WCHAR and CPP_WSTRING.
* cpplib.h (enum cpp_token): Added CPP_WCHAR and CPP_WSTRING. * cpplib.c (cpp_get_token): Produce them. * cppexp.c (cpp_lex): Handle them. From-SVN: r32121
Diffstat (limited to 'gcc/cpplib.c')
-rw-r--r--gcc/cpplib.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/cpplib.c b/gcc/cpplib.c
index 9ffa4a1..43a3bfa 100644
--- a/gcc/cpplib.c
+++ b/gcc/cpplib.c
@@ -2447,7 +2447,6 @@ cpp_get_token (pfile)
case '\"':
case '\'':
- string:
parse_string (pfile, c);
pfile->only_seen_white = 0;
return c == '\'' ? CPP_CHAR : CPP_STRING;
@@ -2600,7 +2599,9 @@ cpp_get_token (pfile)
{
CPP_PUTC (pfile, c);
c = GETC ();
- goto string;
+ parse_string (pfile, c);
+ pfile->only_seen_white = 0;
+ return c == '\'' ? CPP_WCHAR : CPP_WSTRING;
}
goto letter;