[Bug translator/10025] wildcards lose when embedded in conditional %( %) expressions

jistone at redhat dot com sourceware-bugzilla@sourceware.org
Thu May 13 21:04:00 GMT 2010


------- Additional Comments From jistone at redhat dot com  2010-05-13 18:02 -------
(In reply to comment #4)
> Here's a "band-aid" patch that seems to work, but doesn't really fix the
> underlying issues:

That only helps for the simplest wildcard, "*".  For anything more complex, say
"foo*", you'll end up with tok_identifier("foo") followed by tok_operator("*"),
whereas outside of the preprocessor it's a single tok_identifier("foo*").

I thought about peeking ahead to the next token and merging them, but you also
need to make sure that we don't merge them when they truly are two tokens, like
"foo *" (which in a probe point should be a syntax error).

Anyway if we figure this out, I suggest making that kludge permanent, and remove
the equally kludgy wildcard flag from the tokenizer.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=10025

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the Systemtap mailing list