summaryrefslogtreecommitdiff
path: root/proto.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2011-11-24 21:28:27 +0100
committerNicholas Clark <nick@ccl4.org>2011-12-04 13:01:52 +0100
commitb6f82619da63473c236f7d338cafcc1bfd4bafe3 (patch)
tree39ec9b2e7fbf818aa3239fcd237c0ba49039ad16 /proto.h
parent08ad9465eddc2d08165efd8d3767520c6897b2fe (diff)
downloadperl-b6f82619da63473c236f7d338cafcc1bfd4bafe3.tar.gz
Refactor S_usage() to take 0 parameters and exit directly().
This simplifies the code, as it's only called from one spot, in Perl_moreswitches().
Diffstat (limited to 'proto.h')
-rw-r--r--proto.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/proto.h b/proto.h
index 7cc4c08ee5..56ca49ab72 100644
--- a/proto.h
+++ b/proto.h
@@ -5880,10 +5880,8 @@ STATIC void* S_parse_body(pTHX_ char **env, XSINIT_t xsinit);
STATIC void S_run_body(pTHX_ I32 oldscope)
__attribute__noreturn__;
-STATIC void S_usage(pTHX_ const char *name)
- __attribute__nonnull__(pTHX_1);
-#define PERL_ARGS_ASSERT_USAGE \
- assert(name)
+STATIC void S_usage(pTHX)
+ __attribute__noreturn__;
#endif
#if defined(PERL_IN_PP_C)