In perl.git, the branch smoke-me/simplify-S_parse_body has been created

<http://perl5.git.perl.org/perl.git/commitdiff/22c7fd267205b6638617309e25b2f52bfdf3eb60?hp=0000000000000000000000000000000000000000>

        at  22c7fd267205b6638617309e25b2f52bfdf3eb60 (commit)

- Log -----------------------------------------------------------------
commit 22c7fd267205b6638617309e25b2f52bfdf3eb60
Author: Nicholas Clark <[email protected]>
Date:   Thu Nov 24 22:34:43 2011 +0100

    Simplify S_parse_body() by calling S_usage() and S_minus_v() directly.
    
    Previously the code for "--help" and "--version" set a local variable to a
    string corresponding to the single character option ("h" or "v"
    respectively), then restarted the option parsing code, which would then call
    into Perl_moreswitches(), which would then use a switch statement to
    dispatch to the final code.
    
    This is not as clear as it could be.

M       perl.c

commit dce739d59219b30e7635f85e624f99e0d8a1bdd8
Author: Nicholas Clark <[email protected]>
Date:   Thu Nov 24 21:40:40 2011 +0100

    Break the -v code out from Perl_moreswitches() into S_minus_v().

M       embed.fnc
M       embed.h
M       perl.c
M       proto.h

commit 9a823187a04bda07dea0170b657cfc8c4a210c58
Author: Nicholas Clark <[email protected]>
Date:   Thu Nov 24 21:28:27 2011 +0100

    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().

M       embed.fnc
M       embed.h
M       perl.c
M       proto.h
-----------------------------------------------------------------------

--
Perl5 Master Repository

Reply via email to