Fix to escape code handling.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4494 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
26f516695e
commit
a13e0a67c1
3 changed files with 13 additions and 5 deletions
|
|
@ -4134,13 +4134,15 @@ definetype : { /* scanner_check_typedef(); */ } expr {
|
|||
}
|
||||
| CHARCONST {
|
||||
$$.val = NewString($1);
|
||||
$$.rawval = NewStringf("\'%(escape)s\'",$$.val);
|
||||
/*
|
||||
if (Len($$.val)) {
|
||||
/* $$.rawval = NewStringf("\'%(escape)s\'",$$.val); */
|
||||
$$.rawval = NewStringf("\'%s\'", $$.val);
|
||||
} else {
|
||||
$$.rawval = NewString("\'\\0'");
|
||||
$$.val = NewString("\\0");
|
||||
}
|
||||
*/
|
||||
$$.type = T_CHAR;
|
||||
$$.bitfield = 0;
|
||||
$$.throws = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue