From: David B. <dav...@da...> - 2006-10-03 19:20:56
|
On Sep 25, 2006, at 3:28 PM, Olly Betts wrote: > I fixed (or thought I had) bug #1474463 last night. Part of the > problem > was a typo in lang.cxx - it was setting the "rawvalue" attribute > instead > of "rawval" which everything else sets and uses: > > http://swig.cvs.sourceforge.net/swig/SWIG/Source/Modules/lang.cxx? > r1=1.160&r2=1.161 > > However, now I'm getting problems with constant generation - in > %typemap(consttab) $value now doesn't have double quotes, newlines, > etc escaped. > FYI, I'm going to revert code back to its original version to fix this problem. Constants appear to be broken in the test suite and elsewhere. It's been awhile, but as far as I can recall, rawval is the value of a character constant, with quotes, and appropriate escaping so that it can be emitted as a C string literal. Messing around with this is dangerous and likely to break lots of things. Cheers, Dave |