diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1998-05-17 22:37:20 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1998-05-17 22:37:20 +0000 |
commit | 8fd57ce7b4f46d6980519557914b749122ca793f (patch) | |
tree | 89a1d4674609fc0f94f96d80171f80318435c725 | |
parent | 5ec1923a4426d4690717f8616c4813e5c4e9a8b1 (diff) | |
download | perl-8fd57ce7b4f46d6980519557914b749122ca793f.tar.gz |
[win32] sundry whitespace cleanups from maintbranch
p4raw-id: //depot/win32/perl@1008
-rw-r--r-- | Porting/Contract | 5 | ||||
-rw-r--r-- | XSUB.h | 2 | ||||
-rw-r--r-- | av.c | 6 | ||||
-rw-r--r-- | gv.c | 8 | ||||
-rw-r--r-- | mg.c | 2 | ||||
-rw-r--r-- | perl.c | 2 |
6 files changed, 15 insertions, 10 deletions
diff --git a/Porting/Contract b/Porting/Contract index 75a24a7a31..cc91af26bc 100644 --- a/Porting/Contract +++ b/Porting/Contract @@ -1,3 +1,4 @@ + Contributed Modules in Perl Core A Social Contract about Artistic Control @@ -101,3 +102,7 @@ should be open communication, respect for opposing views, and an attempt at a compromise. In nearly every circumstance nothing more will be necessary, and certainly no more drastic measure should be used until every avenue of communication and discussion has failed. + +-- +Version 1.2. By Russ Allbery (rra@stanford.edu) and the perl5-porters. + @@ -7,7 +7,7 @@ #endif #define dXSARGS \ - dSP; dMARK; \ + dSP; dMARK; \ I32 ax = mark - stack_base + 1; \ I32 items = sp - mark @@ -21,10 +21,10 @@ av_reify(AV *av) I32 key; SV* sv; - if (AvREAL(av)) - return; + if (AvREAL(av)) + return; #ifdef DEBUGGING - if (SvRMAGICAL(av) && mg_find((SV*)av,'P')) + if (SvRMAGICAL(av) && mg_find((SV*)av,'P')) warn("av_reify called on tied array"); #endif key = AvMAX(av) + 1; @@ -443,11 +443,11 @@ gv_fetchpv(char *nambeg, I32 add, I32 sv_type) len = namend - name; if (len > 0) { + char smallbuf[256]; char *tmpbuf; - char autobuf[64]; - if (len < sizeof(autobuf) - 2) - tmpbuf = autobuf; + if (len + 3 < sizeof smallbuf) + tmpbuf = smallbuf; else New(601, tmpbuf, len+3, char); Copy(name, tmpbuf, len, char); @@ -462,7 +462,7 @@ gv_fetchpv(char *nambeg, I32 add, I32 sv_type) else GvMULTI_on(gv); } - if (tmpbuf != autobuf) + if (tmpbuf != smallbuf) Safefree(tmpbuf); if (!gv || gv == (GV*)&sv_undef) return Nullgv; @@ -1377,7 +1377,7 @@ magic_getdefelem(SV *sv, MAGIC *mg) targ = HeVAL(he); } else { - AV* av = (AV*)LvTARG(sv); + AV* av = (AV*)LvTARG(sv); if ((I32)LvTARGOFF(sv) <= AvFILL(av)) targ = AvARRAY(av)[LvTARGOFF(sv)]; } @@ -696,7 +696,7 @@ setuid perl scripts securely.\n"); if (euid != uid || egid != gid) croak("No -e allowed in setuid scripts"); if (!e_script) { - e_script = newSVpv("",0); + e_script = newSVpv("",0); filter_add(read_e_script, NULL); } if (*++s) |