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]

Re: Systemtap preprocessor and short-circuit boolean evaluation


Andrew Stitcher <astitcher@redhat.com> writes:

> [...]
> What I'd like to be able to write is:
> %( $# >= 1 && @1 == "futex" %?
> [...]
> However because && is not short circuiting in the preprocessor I have to
> write [far more than any decent, patriotic human being should ever be
> required to; even more than the penance little six-year-old Johnny
> had to perform after teasing the neighbour's cat; oh dear, oh dear]

Yeah, that's a bug: filed as http://sourceware.org/PR13655.  It
shouldn't be too hard to fix actually.  It might just need an extra
statement or two on line 588ish.

- FChE


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