id-utils Fails to Parse Indented C Preprocessor Statements.
Bug #1594 reported by
Ralph Corderoy
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
id-utils (Debian) |
Fix Released
|
Unknown
|
|||
id-utils (Ubuntu) |
Fix Released
|
Medium
|
MOTU Reviewers Team |
Bug Description
mkid(1), and therefore xtokid(1), seem to get confused by indented C
preprocessor statements.
$ cat id-utils-bug.c
#include "foo.h"
#ifdef BAR
#include <bar.h>
#endif
foo bar
$ xtokid id-utils-bug.c
foo.h
BAR
include
bar
h
foo
bar
The indented line is generating a token for `include', and `bar.h'
should be one token like `foo.h' was before it.
This is id-utils version 3.2d-10.
Changed in id-utils: | |
assignee: | nobody → motu |
Changed in id-utils: | |
status: | Unknown → Unconfirmed |
Changed in id-utils: | |
status: | Fix Committed → Fix Released |
Changed in id-utils: | |
status: | Unconfirmed → Fix Released |
To post a comment you must log in.
It's fixed in GNU's CVS already, but id-utils is without a maintainer so
I guess that's why, despite the bug fix being in 1999, it hasn't made it
into a new release. Perhaps Debian can include some of the patches?
http:// savannah. gnu.org/ cgi-bin/ viewcvs/ idutils/ idutils/ libidu/ scanners. c.diff? r1=1.7& r2=1.8