diff options
author | Nicholas Clark <nick@ccl4.org> | 2011-11-24 21:28:27 +0100 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2011-12-04 13:01:52 +0100 |
commit | b6f82619da63473c236f7d338cafcc1bfd4bafe3 (patch) | |
tree | 39ec9b2e7fbf818aa3239fcd237c0ba49039ad16 /proto.h | |
parent | 08ad9465eddc2d08165efd8d3767520c6897b2fe (diff) | |
download | perl-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.h | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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) |