From 6a505121fc997e6f21d26f8c8656f99e58faaaab Mon Sep 17 00:00:00 2001 From: fche Date: Sat, 3 Sep 2005 16:52:41 +0000 Subject: 2005-09-03 Frank Ch. Eigler 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. --- tapset/conversions.stp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'tapset/conversions.stp') 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) -} -- cgit