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: 21 May 2010 18:37:10 -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-21 18:37 -------
(In reply to comment #10)
> Does your code make this test case work?
>
> stap -e 'probe begin { log ( %( 1==1 %? "hello " @1 %) ) }' world
> ^^^^^^^^^^^
>
> Note token-gluing within the %( %)
It doesn't work, but neither does this:
stap -e 'probe begin { log ( "hello " @1 ) }' world
So this isn't really an issue with the preprocessor. I think the way 11208 was
implemented prevents the @1 token replacement from being noticed when looking
ahead to merge strings. In fact, even the ("/usr" @1 "/bin") example given in
NEWS doesn't parse for the same reason. I'll open a separate bugzilla on this.
--
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.