summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorLukas Mai <lukasmai.403@gmail.com>2023-03-30 09:21:54 +0200
committerYves Orton <demerphq@gmail.com>2023-03-30 16:33:43 +0800
commitf0ccf3d06975afe2d1bcdc52912395058983b8e6 (patch)
tree8768fb2f7d9ef45d89077bfd72fe4c3007db83eb /op.c
parent13dc9989e55acd863329057e268c87a3f6f53aab (diff)
downloadperl-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.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/op.c b/op.c
index 981bb2961d..df43c2a02d 100644
--- a/op.c
+++ b/op.c
@@ -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