This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]