diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2016-01-23 23:08:16 +0000 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2016-01-23 23:10:04 +0000 |
commit | 420755337d0e91164177f6d3be385fd18a4e05cf (patch) | |
tree | 2987c5235c7602b4c2f4c423506f69421af1c9c2 | |
parent | 05db046456fa303857879789209aec71a5ffd818 (diff) | |
download | swig-char_enums.tar.gz |
Remove pointless code creating WCHARCONST tokenchar_enums
wchar_t single character constants don't seem to be working so there is
more to do
-rw-r--r-- | Source/CParse/parser.y | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Source/CParse/parser.y b/Source/CParse/parser.y index e494c78b5..5a6d8ae62 100644 --- a/Source/CParse/parser.y +++ b/Source/CParse/parser.y @@ -5971,11 +5971,7 @@ valexpr : exprnum { $$ = $1; } } | WCHARCONST { $$.val = NewString($1); - if (Len($$.val)) { - $$.rawval = NewStringf("L\'%s\'", $$.val); - } else { - $$.rawval = NewString("L'\\0'"); - } + $$.rawval = NewStringf("L\'%s\'", $$.val); $$.type = T_WCHAR; $$.bitfield = 0; $$.throws = 0; |