diff options
author | Karl Williamson <public@khwilliamson.com> | 2013-09-09 20:09:13 -0600 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2013-11-26 21:03:39 -0700 |
commit | 2a99ff865b7e95ea4a62ce50e45f728a34bdcb1f (patch) | |
tree | b1bc9274490458d05cb33d13c948ea496428559a /mg.c | |
parent | 4f4ff3a7a93b5324d304037653dcc78e4cdc7cc1 (diff) | |
download | perl-2a99ff865b7e95ea4a62ce50e45f728a34bdcb1f.tar.gz |
mg.c: White-space only
Outdent this code as a result of removing outer blocks
Diffstat (limited to 'mg.c')
-rw-r--r-- | mg.c | 68 |
1 files changed, 34 insertions, 34 deletions
@@ -796,45 +796,45 @@ Perl_magic_get(pTHX_ SV *sv, MAGIC *mg) #if defined(VMS) || defined(OS2) || defined(WIN32) # if defined(VMS) - { - char msg[255]; - $DESCRIPTOR(msgdsc,msg); - sv_setnv(sv,(NV) vaxc$errno); - if (sys$getmsg(vaxc$errno,&msgdsc.dsc$w_length,&msgdsc,0,0) & 1) - sv_setpvn(sv,msgdsc.dsc$a_pointer,msgdsc.dsc$w_length); - else - sv_setpvs(sv,""); - } + { + char msg[255]; + $DESCRIPTOR(msgdsc,msg); + sv_setnv(sv,(NV) vaxc$errno); + if (sys$getmsg(vaxc$errno,&msgdsc.dsc$w_length,&msgdsc,0,0) & 1) + sv_setpvn(sv,msgdsc.dsc$a_pointer,msgdsc.dsc$w_length); + else + sv_setpvs(sv,""); + } #elif defined(OS2) - if (!(_emx_env & 0x200)) { /* Under DOS */ - sv_setnv(sv, (NV)errno); - sv_setpv(sv, errno ? Strerror(errno) : ""); - } else { - if (errno != errno_isOS2) { - const int tmp = _syserrno(); - if (tmp) /* 2nd call to _syserrno() makes it 0 */ - Perl_rc = tmp; - } - sv_setnv(sv, (NV)Perl_rc); - sv_setpv(sv, os2error(Perl_rc)); - } + if (!(_emx_env & 0x200)) { /* Under DOS */ + sv_setnv(sv, (NV)errno); + sv_setpv(sv, errno ? Strerror(errno) : ""); + } else { + if (errno != errno_isOS2) { + const int tmp = _syserrno(); + if (tmp) /* 2nd call to _syserrno() makes it 0 */ + Perl_rc = tmp; + } + sv_setnv(sv, (NV)Perl_rc); + sv_setpv(sv, os2error(Perl_rc)); + } # elif defined(WIN32) - { - const DWORD dwErr = GetLastError(); - sv_setnv(sv, (NV)dwErr); - if (dwErr) { - PerlProc_GetOSError(sv, dwErr); - } - else - sv_setpvs(sv, ""); - SetLastError(dwErr); - } + { + const DWORD dwErr = GetLastError(); + sv_setnv(sv, (NV)dwErr); + if (dwErr) { + PerlProc_GetOSError(sv, dwErr); + } + else + sv_setpvs(sv, ""); + SetLastError(dwErr); + } # else # error Missing code for platform # endif - SvRTRIM(sv); - SvNOK_on(sv); /* what a wonderful hack! */ - break; + SvRTRIM(sv); + SvNOK_on(sv); /* what a wonderful hack! */ + break; #endif /* End of platforms with special handling for $^E; others just fall through to $! */ |