From a5a5398e240d39cedb7d944edb833d8449da3e11 Mon Sep 17 00:00:00 2001 From: fche Date: Fri, 2 Sep 2005 15:54:18 +0000 Subject: 2005-09-02 Frank Ch. Eigler * tapset/*.stp: Renamed several files to simplify names. --- tapset/conversions.stp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tapset/conversions.stp (limited to 'tapset/conversions.stp') diff --git a/tapset/conversions.stp b/tapset/conversions.stp new file mode 100644 index 00000000..5c0230d4 --- /dev/null +++ b/tapset/conversions.stp @@ -0,0 +1,14 @@ +function _hexstring (num) %{ + sprintf (THIS->__retvalue, "0x%llx", (long long) THIS->num); +%} + +function hexstring (num) { + return "" . _hexstring (num + 0) +} +function _string (num) %{ + sprintf (THIS->__retvalue, "%lld", (long long) THIS->num); +%} + +function string (num) { + return "" . _string (num + 0) +} -- cgit