This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/10025] wildcards lose when embedded in conditional %( %) expressions
- From: "jistone at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 13 May 2010 18:02:40 -0000
- Subject: [Bug translator/10025] wildcards lose when embedded in conditional %( %) expressions
- References: <20090402151723.10025.eteo@redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- 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.