3030 */
3131
3232struct jmpenv {
33- struct jmpenv * je_prev ;
34- Sigjmp_buf je_buf ; /* uninit if je_prev is NULL */
35- int je_ret ; /* last exception thrown */
36- bool je_mustcatch ; /* longjmp()s must be caught locally */
37- U16 je_old_delaymagic ; /* saved PL_delaymagic */
38- SSize_t je_old_stack_hwm ;
33+ struct jmpenv * je_prev ;
34+ Sigjmp_buf je_buf ; /* uninit if je_prev is NULL */
35+ int je_ret ; /* last exception thrown */
36+ bool je_mustcatch ; /* longjmp()s must be caught locally */
37+ U16 je_old_delaymagic ; /* saved PL_delaymagic */
38+ SSize_t je_old_stack_hwm ;
3939};
4040
4141typedef struct jmpenv JMPENV ;
@@ -424,23 +424,23 @@ struct cop {
424424 BASEOP
425425 /* On LP64 putting this here takes advantage of the fact that BASEOP isn't
426426 an exact multiple of 8 bytes to save structure padding. */
427- line_t cop_line ; /* line # of this command */
427+ line_t cop_line ; /* line # of this command */
428428 /* label for this construct is now stored in cop_hints_hash */
429429#ifdef USE_ITHREADS
430- PADOFFSET cop_stashoff ; /* offset into PL_stashpad, for the
431- package the line was compiled in */
432- char * cop_file ; /* name of file this command is from */
430+ PADOFFSET cop_stashoff ; /* offset into PL_stashpad, for the
431+ package the line was compiled in */
432+ char * cop_file ; /* name of file this command is from */
433433#else
434- HV * cop_stash ; /* package line was compiled in */
435- GV * cop_filegv ; /* name of GV file this command is from */
434+ HV * cop_stash ; /* package line was compiled in */
435+ GV * cop_filegv ; /* name of GV file this command is from */
436436#endif
437- U32 cop_hints ; /* hints bits from pragmata */
438- U32 cop_seq ; /* parse sequence number */
437+ U32 cop_hints ; /* hints bits from pragmata */
438+ U32 cop_seq ; /* parse sequence number */
439439 /* Beware. mg.c and warnings.pl assume the type of this is STRLEN *: */
440- STRLEN * cop_warnings ; /* lexical warnings bitmask */
440+ STRLEN * cop_warnings ; /* lexical warnings bitmask */
441441 /* compile time state of %^H. See the comment in op.c for how this is
442442 used to recreate a hash to return from caller. */
443- COPHH * cop_hints_hash ;
443+ COPHH * cop_hints_hash ;
444444 /* for now just a bitmask stored here.
445445 If we get sufficient features this may become a pointer.
446446 How these flags are stored is subject to change without
@@ -702,27 +702,27 @@ by setting C<*flags> to 0 or C<SVf_UTF8>.
702702
703703/* subroutine context */
704704struct block_sub {
705- OP * retop ; /* op to execute on exit from sub */
706- I32 old_cxsubix ; /* previous value of si_cxsubix */
705+ OP * retop ; /* op to execute on exit from sub */
706+ I32 old_cxsubix ; /* previous value of si_cxsubix */
707707 /* Above here is the same for sub, format and eval. */
708- PAD * prevcomppad ; /* the caller's PL_comppad */
709- CV * cv ;
708+ PAD * prevcomppad ; /* the caller's PL_comppad */
709+ CV * cv ;
710710 /* Above here is the same for sub and format. */
711- I32 olddepth ;
712- AV * savearray ;
711+ I32 olddepth ;
712+ AV * savearray ;
713713};
714714
715715
716716/* format context */
717717struct block_format {
718- OP * retop ; /* op to execute on exit from sub */
719- I32 old_cxsubix ; /* previous value of si_cxsubix */
718+ OP * retop ; /* op to execute on exit from sub */
719+ I32 old_cxsubix ; /* previous value of si_cxsubix */
720720 /* Above here is the same for sub, format and eval. */
721- PAD * prevcomppad ; /* the caller's PL_comppad */
722- CV * cv ;
721+ PAD * prevcomppad ; /* the caller's PL_comppad */
722+ CV * cv ;
723723 /* Above here is the same for sub and format. */
724- GV * gv ;
725- GV * dfoutgv ;
724+ GV * gv ;
725+ GV * dfoutgv ;
726726};
727727
728728/* return a pointer to the current context */
@@ -776,14 +776,14 @@ struct block_format {
776776
777777/* eval context */
778778struct block_eval {
779- OP * retop ; /* op to execute on exit from eval */
780- I32 old_cxsubix ; /* previous value of si_cxsubix */
779+ OP * retop ; /* op to execute on exit from eval */
780+ I32 old_cxsubix ; /* previous value of si_cxsubix */
781781 /* Above here is the same for sub, format and eval. */
782- SV * old_namesv ;
783- OP * old_eval_root ;
784- SV * cur_text ;
785- CV * cv ;
786- JMPENV * cur_top_env ; /* value of PL_top_env when eval CX created */
782+ SV * old_namesv ;
783+ OP * old_eval_root ;
784+ SV * cur_text ;
785+ CV * cv ;
786+ JMPENV * cur_top_env ; /* value of PL_top_env when eval CX created */
787787};
788788
789789/* If we ever need more than 512 op types, change the shift from 7.
@@ -798,32 +798,32 @@ struct block_eval {
798798
799799/* loop context */
800800struct block_loop {
801- LOOP * my_op ; /* My op, that contains redo, next and last ops. */
802- union { /* different ways of locating the iteration variable */
803- SV * * svp ; /* for lexicals: address of pad slot */
804- GV * gv ; /* for package vars */
805- } itervar_u ;
806- SV * itersave ; /* the original iteration var */
801+ LOOP * my_op ; /* My op, that contains redo, next and last ops. */
802+ union { /* different ways of locating the iteration variable */
803+ SV * * svp ; /* for lexicals: address of pad slot */
804+ GV * gv ; /* for package vars */
805+ } itervar_u ;
806+ SV * itersave ; /* the original iteration var */
807807 union {
808808 struct { /* CXt_LOOP_ARY, C<for (@ary)> */
809- AV * ary ; /* array being iterated over */
810- IV ix ; /* index relative to base of array */
811- } ary ;
809+ AV * ary ; /* array being iterated over */
810+ IV ix ; /* index relative to base of array */
811+ } ary ;
812812 struct { /* CXt_LOOP_LIST, C<for (list)> */
813- I32 basesp ; /* first element of list on stack */
814- IV ix ; /* index relative to basesp */
815- } stack ;
813+ I32 basesp ; /* first element of list on stack */
814+ IV ix ; /* index relative to basesp */
815+ } stack ;
816816 struct { /* CXt_LOOP_LAZYIV, C<for (1..9)> */
817- IV cur ;
818- IV end ;
819- } lazyiv ;
817+ IV cur ;
818+ IV end ;
819+ } lazyiv ;
820820 struct { /* CXt_LOOP_LAZYSV C<for ('a'..'z')> */
821- SV * cur ;
822- SV * end ; /* maxiumum value (or minimum in reverse) */
823- } lazysv ;
824- } state_u ;
821+ SV * cur ;
822+ SV * end ; /* maxiumum value (or minimum in reverse) */
823+ } lazysv ;
824+ } state_u ;
825825#ifdef USE_ITHREADS
826- PAD * oldcomppad ; /* needed to map itervar_u.svp during thread clone */
826+ PAD * oldcomppad ; /* needed to map itervar_u.svp during thread clone */
827827#endif
828828};
829829
@@ -858,33 +858,33 @@ struct block_loop {
858858
859859/* given/when context */
860860struct block_givwhen {
861- OP * leave_op ;
862- SV * defsv_save ; /* the original $_ */
861+ OP * leave_op ;
862+ SV * defsv_save ; /* the original $_ */
863863};
864864
865865
866866
867867/* context common to subroutines, evals and loops */
868868struct block {
869- U8 blku_type ; /* what kind of context this is */
870- U8 blku_gimme ; /* is this block running in list context? */
871- U16 blku_u16 ; /* used by block_sub and block_eval (so far) */
872- I32 blku_oldsaveix ; /* saved PL_savestack_ix */
869+ U8 blku_type ; /* what kind of context this is */
870+ U8 blku_gimme ; /* is this block running in list context? */
871+ U16 blku_u16 ; /* used by block_sub and block_eval (so far) */
872+ I32 blku_oldsaveix ; /* saved PL_savestack_ix */
873873 /* all the fields above must be aligned with same-sized fields as sbu */
874- I32 blku_oldsp ; /* current sp floor: where nextstate pops to */
875- I32 blku_oldmarksp ; /* mark stack index */
876- COP * blku_oldcop ; /* old curcop pointer */
877- PMOP * blku_oldpm ; /* values of pattern match vars */
878- SSize_t blku_old_tmpsfloor ; /* saved PL_tmps_floor */
879- I32 blku_oldscopesp ; /* scope stack index */
874+ I32 blku_oldsp ; /* current sp floor: where nextstate pops to */
875+ I32 blku_oldmarksp ; /* mark stack index */
876+ COP * blku_oldcop ; /* old curcop pointer */
877+ PMOP * blku_oldpm ; /* values of pattern match vars */
878+ SSize_t blku_old_tmpsfloor ; /* saved PL_tmps_floor */
879+ I32 blku_oldscopesp ; /* scope stack index */
880880
881881 union {
882882 struct block_sub blku_sub ;
883883 struct block_format blku_format ;
884884 struct block_eval blku_eval ;
885885 struct block_loop blku_loop ;
886886 struct block_givwhen blku_givwhen ;
887- } blk_u ;
887+ } blk_u ;
888888};
889889#define blk_oldsp cx_u.cx_blk.blku_oldsp
890890#define blk_oldcop cx_u.cx_blk.blku_oldcop
@@ -920,18 +920,18 @@ struct subst {
920920 U8 sbu_type ; /* same as blku_type */
921921 U8 sbu_rflags ;
922922 U16 sbu_rxtainted ;
923- I32 sbu_oldsaveix ; /* same as blku_oldsaveix */
923+ I32 sbu_oldsaveix ; /* same as blku_oldsaveix */
924924 /* all the fields above must be aligned with same-sized fields as blk_u */
925925 SSize_t sbu_iters ;
926926 SSize_t sbu_maxiters ;
927- char * sbu_orig ;
928- SV * sbu_dstr ;
929- SV * sbu_targ ;
930- char * sbu_s ;
931- char * sbu_m ;
932- char * sbu_strend ;
933- void * sbu_rxres ;
934- REGEXP * sbu_rx ;
927+ char * sbu_orig ;
928+ SV * sbu_dstr ;
929+ SV * sbu_targ ;
930+ char * sbu_s ;
931+ char * sbu_m ;
932+ char * sbu_strend ;
933+ void * sbu_rxres ;
934+ REGEXP * sbu_rx ;
935935};
936936
937937#ifdef PERL_CORE
@@ -987,7 +987,7 @@ struct context {
987987 union {
988988 struct block cx_blk ;
989989 struct subst cx_subst ;
990- } cx_u ;
990+ } cx_u ;
991991};
992992#define cx_type cx_u.cx_subst.sbu_type
993993
@@ -1127,10 +1127,10 @@ struct context {
11271127#define PERLSI_REGCOMP 11
11281128
11291129struct stackinfo {
1130- AV * si_stack ; /* stack for current runlevel */
1131- PERL_CONTEXT * si_cxstack ; /* context stack for runlevel */
1132- struct stackinfo * si_prev ;
1133- struct stackinfo * si_next ;
1130+ AV * si_stack ; /* stack for current runlevel */
1131+ PERL_CONTEXT * si_cxstack ; /* context stack for runlevel */
1132+ struct stackinfo * si_prev ;
1133+ struct stackinfo * si_next ;
11341134 I32 si_cxix ; /* current context index */
11351135 I32 si_cxmax ; /* maximum allocated index */
11361136 I32 si_cxsubix ; /* topmost sub/eval/format */
@@ -1139,7 +1139,7 @@ struct stackinfo {
11391139 * currently used only with DEBUGGING,
11401140 * but not #ifdef-ed for bincompat */
11411141#if defined DEBUGGING && !defined DEBUGGING_RE_ONLY
1142- /* high water mark: for checking if the stack was correctly extended /
1142+ /* high water mark: for checking if the stack was correctly extended /
11431143 * tested for extension by each pp function */
11441144 SSize_t si_stack_hwm ;
11451145#endif
0 commit comments