summaryrefslogtreecommitdiff
path: root/op.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2008-01-21 11:50:52 +0000
committerNicholas Clark <nick@ccl4.org>2008-01-21 11:50:52 +0000
commit2f8edad0d37e91319b6ba10b3745327ea49c179b (patch)
treee3631bff088c1a90196228cea1088e9035d208e8 /op.h
parent7df0357e86d252406ff52a5b94e0478fc1ccd1be (diff)
downloadperl-2f8edad0d37e91319b6ba10b3745327ea49c179b.tar.gz
Give G_VOID, G_SCALAR and G_ARRAY the same numeric values as
OPf_WANT_VOID, OPf_WANT_SCALAR and OPf_WANT_LIST. p4raw-id: //depot/perl@33025
Diffstat (limited to 'op.h')
-rw-r--r--op.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/op.h b/op.h
index fa1230d544..63390ea196 100644
--- a/op.h
+++ b/op.h
@@ -70,10 +70,7 @@
((op)->op_flags & OPf_WANT) == OPf_WANT_LIST ? G_ARRAY : \
dfl)
-#define OP_GIMME_REVERSE(flags) \
- ((flags & G_VOID) ? OPf_WANT_VOID : \
- (flags & G_ARRAY) ? OPf_WANT_LIST : \
- OPf_WANT_SCALAR)
+#define OP_GIMME_REVERSE(flags) ((flags) & G_WANT)
/*
=head1 "Gimme" Values