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

jistone at redhat dot com sourceware-bugzilla@sourceware.org
Fri May 21 19:40:00 GMT 2010


------- 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.



More information about the Systemtap mailing list