Skip to content

Commit

Permalink
Remove pointless code creating WCHARCONST token
Browse files Browse the repository at this point in the history
wchar_t single character constants don't seem to be working so there is
more to do
  • Loading branch information
wsfulton committed Jan 23, 2016
1 parent 05db046 commit 4207553
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Source/CParse/parser.y
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4207553

Please sign in to comment.