[ swig-Bugs-498357 ] swig silently emits nothing for hex-cons
<noreply <at> sourceforge.net>
2002-01-01 21:25:41 GMT
Bugs item #498357, was opened at 2002-01-01 13:25
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=101645&aid=498357&group_id=1645
Category: preprocessor
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: swig silently emits nothing for hex-cons
Initial Comment:
swig silently emits nothing for hex-constants. The
problem is in 'check_id', on 'case 0:'... it
checks 'isdigit', but doesn't check for the 'x'... A
fix is below (as david beazley points out, its not
quite correct, it now allows #define A x as a valid
constant).
>
> static int
> check_id(DOH *s)
> {
> int c, state = 0;
> int hasvalue = 0;
> Seek(s,0,SEEK_SET);
> while ((c = Getc(s)) != EOF) {
> switch(state) {
(Continue reading)