diff options
author | Lukas Mai <lukasmai.403@gmail.com> | 2023-03-30 09:21:54 +0200 |
---|---|---|
committer | Yves Orton <demerphq@gmail.com> | 2023-03-30 16:33:43 +0800 |
commit | f0ccf3d06975afe2d1bcdc52912395058983b8e6 (patch) | |
tree | 8768fb2f7d9ef45d89077bfd72fe4c3007db83eb /op.c | |
parent | 13dc9989e55acd863329057e268c87a3f6f53aab (diff) | |
download | perl-f0ccf3d06975afe2d1bcdc52912395058983b8e6.tar.gz |
op.c: use consistent spacing around = and ,
... in the Module::Install::DSL hack. Also, move `{` up to the same line
as the controlling `if` for consistency with the rest of the file.
Diffstat (limited to 'op.c')
-rw-r--r-- | op.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -11180,12 +11180,11 @@ S_process_special_blocks(pTHX_ I32 floor, const char *const fullname, if (strEQ(name, "INIT")) { #ifdef MI_INIT_WORKAROUND_PACK { - HV *hv= CvSTASH(cv); + HV *hv = CvSTASH(cv); STRLEN len = hv ? HvNAMELEN(hv) : 0; - char *pv= (len == sizeof(MI_INIT_WORKAROUND_PACK)-1) + char *pv = (len == sizeof(MI_INIT_WORKAROUND_PACK)-1) ? HvNAME_get(hv) : NULL; - if ( pv && strEQ(pv,MI_INIT_WORKAROUND_PACK) ) - { + if ( pv && strEQ(pv, MI_INIT_WORKAROUND_PACK) ) { /* old versions of Module::Install::DSL contain code * that creates an INIT in eval, which expects to run * after an exit(0) in BEGIN. This unfortunately |