From: Nicholas Clark Date: Wed, 18 Nov 2009 17:30:03 +0000 (+0000) Subject: Abolish xio_lines from struct PVIO - store IoLINES() in the IVX slot. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c490b21c04c1b227f71571c6c3091caea429d9c6;p=p5sagit%2Fp5-mst-13.2.git Abolish xio_lines from struct PVIO - store IoLINES() in the IVX slot. --- diff --git a/sv.h b/sv.h index a5c568c..b452b36 100644 --- a/sv.h +++ b/sv.h @@ -529,7 +529,7 @@ struct xpvfm { DIR * xiou_dirp; /* for opendir, readdir, etc */ \ void * xiou_any; /* for alignment */ \ } xio_dirpu; \ - IV xio_lines; /* $. */ \ + /* IV xio_lines is now in IVX $. */ \ IV xio_page; /* $% */ \ IV xio_page_len; /* $= */ \ IV xio_lines_left; /* $- */ \ @@ -1317,7 +1317,7 @@ the scalar's value cannot change unless written to. #define IoOFP(sv) ((XPVIO*) SvANY(sv))->xio_ofp #define IoDIRP(sv) ((XPVIO*) SvANY(sv))->xio_dirp #define IoANY(sv) ((XPVIO*) SvANY(sv))->xio_any -#define IoLINES(sv) ((XPVIO*) SvANY(sv))->xio_lines +#define IoLINES(sv) ((XPVIO*) SvANY(sv))->xiv_u.xivu_iv #define IoPAGE(sv) ((XPVIO*) SvANY(sv))->xio_page #define IoPAGE_LEN(sv) ((XPVIO*) SvANY(sv))->xio_page_len #define IoLINES_LEFT(sv)((XPVIO*) SvANY(sv))->xio_lines_left