Patch: allow use of $x and @x
Pierre Peiffer
pierre.peiffer@bull.net
Wed Apr 4 14:48:00 GMT 2007
Ok, here is a patch including everything (hopefully) about the use of $# and @#
to access the number of argument..
I've merged the two patches into one.
I have updated and added some tests in the testsuite to test these new
identifiers. And I also have (tried to) updated the man.
Also there is some minor changes/updates to improve my previous code.
Here is a detailled changelog:
* parse.cxx, parse.h: Add $# and @# identifiers to access the number
of arguments.
- Allow the use of $x and @x identifiers during the preprocessing.
- Produce more accurate error message when having incomplete
conditional during the preprocessing.
* stap.1.in: Document $# and @# identifiers.
And in the testsuite:
* parseok/fourteen.stp: Add test about $# and @# usage during
the preprocessing.
* parseko/preprocess10.stp: New test.
* parseko/preprocess11.stp: New test.
* parseko/preprocess12.stp: New test.
Thanks,
Pierre Peiffer a écrit :
> Frank Ch. Eigler a écrit :
>
>>
>> The ideas and patches look fine. They would need to be completed by
>> the addition of some documentation to the man pages, and some bits for
>> the testsuite. Would you like to do that too?
>>
> Yep, I'll try to do that today.
>
--
Pierre
-------------- next part --------------
A non-text attachment was scrubbed...
Name: allow-number-of-args-pattern.patch
Type: text/x-patch
Size: 14012 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/systemtap/attachments/20070404/4c459b01/attachment.bin>
More information about the Systemtap
mailing list