summaryrefslogtreecommitdiff
path: root/dist
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2010-10-31 20:52:25 +0000
committerNicholas Clark <nick@ccl4.org>2010-10-31 20:52:25 +0000
commit419956aa3919a2174e7f99c4d162e76cb94f0a9e (patch)
tree28d12e696c4081da0c44f83aba2b8c5729167976 /dist
parentbc618d8e27c89135d9376156897345be8539c527 (diff)
downloadperl-419956aa3919a2174e7f99c4d162e76cb94f0a9e.tar.gz
Storable::{last_op_in_netorder,is_storing,is_retrieving} are all boolean.
Hence they can have return type bool, which allows xsubpp to generate slightly simpler (and smaller) code, and at run time avoids using a temporary for the return value.
Diffstat (limited to 'dist')
-rw-r--r--dist/Storable/Storable.xs12
1 files changed, 6 insertions, 6 deletions
diff --git a/dist/Storable/Storable.xs b/dist/Storable/Storable.xs
index 7ede03af23..846a6508c3 100644
--- a/dist/Storable/Storable.xs
+++ b/dist/Storable/Storable.xs
@@ -6417,23 +6417,23 @@ SV * sv
OUTPUT:
RETVAL
-int
+bool
last_op_in_netorder()
CODE:
- RETVAL = last_op_in_netorder(aTHX);
+ RETVAL = !!last_op_in_netorder(aTHX);
OUTPUT:
RETVAL
-int
+bool
is_storing()
CODE:
- RETVAL = is_storing(aTHX);
+ RETVAL = !!is_storing(aTHX);
OUTPUT:
RETVAL
-int
+bool
is_retrieving()
CODE:
- RETVAL = is_retrieving(aTHX);
+ RETVAL = !!is_retrieving(aTHX);
OUTPUT:
RETVAL