diff options
author | James Jurach <muaddib@erf.net> | 2003-07-02 08:31:05 -0500 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2003-07-02 19:39:11 +0000 |
commit | dea2849036f7f874ea24a97b41ef1b738aa592ca (patch) | |
tree | 4b49ab128ff51fca1ae33d55b5ab1bd7bf8f73f8 /pp_ctl.c | |
parent | d6df3700e9fd7f8b471288012f05c37f69c233f6 (diff) | |
download | perl-dea2849036f7f874ea24a97b41ef1b738aa592ca.tar.gz |
line numbers are given % 64k
Message-ID: <20030702183105.GA4837@lebowski>
p4raw-id: //depot/perl@19934
Diffstat (limited to 'pp_ctl.c')
-rw-r--r-- | pp_ctl.c | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -22,7 +22,7 @@ #include "perl.h" #ifndef WORD_ALIGN -#define WORD_ALIGN sizeof(U16) +#define WORD_ALIGN sizeof(U32) #endif #define DOCATCH(o) ((CATCH_GET == TRUE) ? docatch(o) : (o)) @@ -349,7 +349,7 @@ PP(pp_formline) { dSP; dMARK; dORIGMARK; register SV *tmpForm = *++MARK; - register U16 *fpc; + register U32 *fpc; register char *t; register char *f; register char *s; @@ -389,7 +389,7 @@ PP(pp_formline) /* need to jump to the next word */ s = f + len + WORD_ALIGN - SvCUR(tmpForm) % WORD_ALIGN; - fpc = (U16*)s; + fpc = (U32*)s; for (;;) { DEBUG_f( { @@ -3549,9 +3549,9 @@ S_doparseform(pTHX_ SV *sv) bool noblank = FALSE; bool repeat = FALSE; bool postspace = FALSE; - U16 *fops; - register U16 *fpc; - U16 *linepc = 0; + U32 *fops; + register U32 *fpc; + U32 *linepc = 0; register I32 arg; bool ischop; int maxops = 2; /* FF_LINEMARK + FF_END) */ @@ -3567,7 +3567,7 @@ S_doparseform(pTHX_ SV *sv) s = base; base = Nullch; - New(804, fops, maxops, U16); + New(804, fops, maxops, U32); fpc = fops; if (s < send) { @@ -3735,10 +3735,10 @@ S_doparseform(pTHX_ SV *sv) { /* need to jump to the next word */ int z; z = WORD_ALIGN - SvCUR(sv) % WORD_ALIGN; - SvGROW(sv, SvCUR(sv) + z + arg * sizeof(U16) + 4); + SvGROW(sv, SvCUR(sv) + z + arg * sizeof(U32) + 4); s = SvPVX(sv) + SvCUR(sv) + z; } - Copy(fops, s, arg, U16); + Copy(fops, s, arg, U32); Safefree(fops); sv_magic(sv, Nullsv, PERL_MAGIC_fm, Nullch, 0); SvCOMPILED_on(sv); |