From a781f4011250a7d6450025a92336250044ab46eb Mon Sep 17 00:00:00 2001 From: fche Date: Tue, 2 Aug 2005 18:03:17 +0000 Subject: 2005-08-02 Frank Ch. Eigler * loc2.c (emit_loc_address): Emit interleaved declaration into its own nested { } block. * tapsets.cxx (literal_stmt_for_local): Emit deref_fault block unconditionally. * tapset/builtin_hexstring.stp: New builtin. * testsuite/buildok/six.stp: New test. --- tapset/builtin_hexstring.stp | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 tapset/builtin_hexstring.stp (limited to 'tapset/builtin_hexstring.stp') diff --git a/tapset/builtin_hexstring.stp b/tapset/builtin_hexstring.stp new file mode 100644 index 00000000..c441bbc4 --- /dev/null +++ b/tapset/builtin_hexstring.stp @@ -0,0 +1,7 @@ +function _hexstring (num) %{ + sprintf (THIS->__retvalue, "%llx", (long long) THIS->num); +%} + +function hexstring (num) { + return "" . _hexstring (num + 0) +} -- cgit