From: Nicholas Clark Date: Thu, 27 Sep 2007 09:40:58 +0000 (+0000) Subject: Move the bool v_string_ok into the U16-sized gap in the interpreter X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=756c5c2b691752248a1635194088c45476f496bb;p=p5sagit%2Fp5-mst-13.2.git Move the bool v_string_ok into the U16-sized gap in the interpreter structure. Add a "spare" variable so that we can add the first post- 5.10.0 bool variable without growing the interpreter structure. p4raw-id: //depot/perl@31987 --- diff --git a/intrpvar.h b/intrpvar.h index 6fd9b5d..0c7659a 100644 --- a/intrpvar.h +++ b/intrpvar.h @@ -162,7 +162,13 @@ PERLVAR(Iregdummy, regnode) /* from regcomp.c */ PERLVARI(Idumpindent, U16, 4) /* number of blanks per dump indentation level */ -/* Space for U16 here without increasing the structure size */ +PERLVARI(Iv_string_ok, bool, FALSE) /* use/require v_string OK */ + +/* This would be space for U8 here without increasing the structure size + so name the space, so that the first post 5.10 need for a bool can use this + rather than padding at the end. */ + +PERLVARI(Ispare_510, bool, FALSE) /* */ PERLVARA(Icolors,6, char *) /* from regcomp.c */ @@ -670,8 +676,6 @@ PERLVARI(Islab_count, U32, 0) /* Size of the array */ PERLVARI(Iisarev, HV*, NULL) /* Reverse map of @ISA dependencies */ -PERLVARI(Iv_string_ok, bool, FALSE) /* use/require v_string OK */ - /* If you are adding a U8 or U16, see the 'Space' comments above on where * there are gaps which currently will be structure padding. */