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/timestamp.stp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tapset/timestamp.stp') diff --git a/tapset/timestamp.stp b/tapset/timestamp.stp index f8e1ea4e..b71841d4 100644 --- a/tapset/timestamp.stp +++ b/tapset/timestamp.stp @@ -3,14 +3,14 @@ %} // return in milliseconds since epoch -function gettimeofday_ms () %{ +function gettimeofday_ms:long () %{ struct timeval tm; do_gettimeofday (& tm); THIS->__retvalue = (tm.tv_sec * 1000) + (tm.tv_usec / 1000); %} // return in seconds since epoch -function gettimeofday_s () %{ +function gettimeofday_s:long () %{ struct timeval tm; do_gettimeofday (& tm); THIS->__retvalue = tm.tv_sec; -- cgit