diff options
author | fche <fche> | 2005-09-03 16:52:41 +0000 |
---|---|---|
committer | fche <fche> | 2005-09-03 16:52:41 +0000 |
commit | 6a505121fc997e6f21d26f8c8656f99e58faaaab (patch) | |
tree | a40bb598454cf046c55c54ddfb46f83492fbdcb9 /tapset/conversions.stp | |
parent | d9e1dc7a03b0341bc924ba4a008a31676dbc9510 (diff) | |
download | systemtap-steved-6a505121fc997e6f21d26f8c8656f99e58faaaab.tar.gz systemtap-steved-6a505121fc997e6f21d26f8c8656f99e58faaaab.tar.xz systemtap-steved-6a505121fc997e6f21d26f8c8656f99e58faaaab.zip |
2005-09-03 Frank Ch. Eigler <fche@elastic.org>
PR 1292, by popular request.
* parse.cxx (parse_functiondecl): Allow optional value/param type
declarations.
* stap.1.in: Document this.
* tapset/*.stp: Convert most functions accordingly.
* testsuite/parseok/twelve.stp, semok/seven.stp,
semko/twenty.stp: Test this.
Diffstat (limited to 'tapset/conversions.stp')
-rw-r--r-- | tapset/conversions.stp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/tapset/conversions.stp b/tapset/conversions.stp index 5c0230d4..901f26a4 100644 --- a/tapset/conversions.stp +++ b/tapset/conversions.stp @@ -1,14 +1,8 @@ -function _hexstring (num) %{ +function hexstring:string (num:long) %{ sprintf (THIS->__retvalue, "0x%llx", (long long) THIS->num); %} -function hexstring (num) { - return "" . _hexstring (num + 0) -} -function _string (num) %{ +function string:string (num:long) %{ sprintf (THIS->__retvalue, "%lld", (long long) THIS->num); %} -function string (num) { - return "" . _string (num + 0) -} |