-
Notifications
You must be signed in to change notification settings - Fork 555
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug] sizeof(PerlInterpreter) is wrong in win32/win32.c #9029
Comments
From dk@tetsuo.karasik.eu.orgI've noticed that sizeof(PerlInterpreter) is different in win32/win32.c and #if !defined(PERLIO_IS_STDIO) && !defined(USE_SFIO) and perlio.h does #ifndef PerlIO whereas intrpvar.h declares #ifdef PERLIO_LAYERS which is exactly the reason why sizeof(PerlInterpreter) is less in win32.c Inline Patch--- win32.c.orig 2007-09-17 23:12:34.000000000 +0200
+++ win32.c 2007-09-17 22:16:24.000000000 +0200
@@ -54,6 +54,7 @@
#if !defined(PERLIO_IS_STDIO) && !defined(USE_SFIO)
#define PerlIO FILE
+#define PERLIO_LAYERS 1
#endif
#include <sys/stat.h>
Perl Info
|
From @steve-m-haydk@tetsuo.karasik.eu.org (via RT) wrote:
Which if-endif block are you referring to there? Defining PERLIO_LAYERS 1 doesn't feel right if we're not using the |
The RT System itself - Status changed from 'new' to 'open' |
From @bulk88On Wed Sep 19 06:06:13 2007, shay wrote:
Still a problem in 5.17.6, attaching a diff of post processor of win32.c -- |
From @bulk88interpdiff.patch--- C:\p517\perl\win32\pp_hot.i
+++ C:\p517\perl\win32\win32.i
@@ -1,13 +1,13 @@
-#line 1 "..\\pp_hot.c"
-#line 5000 "c:\\p517\\perl\\perl.h"
+#line 1 ".\\win32.c"
+#line 5000 "..\\lib\\CORE\\perl.h"
struct interpreter {
-#line 1 "c:\\p517\\perl\\intrpvar.h"
+#line 1 "c:\\p517\\perl\\lib\\core\\intrpvar.h"
SV **Istack_sp;
OP *Iop;
-#line 39 "c:\\p517\\perl\\intrpvar.h"
+#line 39 "c:\\p517\\perl\\lib\\core\\intrpvar.h"
SV **Icurpad;
SV **Istack_base;
@@ -46,7 +46,7 @@
SV *Istatname;
struct tms Itimesbuf;
-#line 94 "c:\\p517\\perl\\intrpvar.h"
+#line 94 "c:\\p517\\perl\\lib\\core\\intrpvar.h"
PMOP *Icurpm;
@@ -160,7 +160,7 @@
I32 Istatusvalue;
I32 Istatusvalue_posix;
-#line 313 "c:\\p517\\perl\\intrpvar.h"
+#line 313 "c:\\p517\\perl\\lib\\core\\intrpvar.h"
int Isig_pending;
int *Ipsig_pend;
@@ -248,7 +248,7 @@
struct interp_intern Isys_intern;
-#line 453 "c:\\p517\\perl\\intrpvar.h"
+#line 453 "c:\\p517\\perl\\lib\\core\\intrpvar.h"
CV *IDBcv;
int Igeneration;
@@ -264,7 +264,7 @@
gid_t Idelaymagic_egid;
U32 Ian;
-#line 475 "c:\\p517\\perl\\intrpvar.h"
+#line 475 "c:\\p517\\perl\\lib\\core\\intrpvar.h"
U32 Icop_seqmax;
U32 Ievalseq;
@@ -309,11 +309,11 @@
U32 Icollation_ix;
char Icollation_standard;
-#line 540 "c:\\p517\\perl\\intrpvar.h"
-
-#line 545 "c:\\p517\\perl\\intrpvar.h"
-
-#line 547 "c:\\p517\\perl\\intrpvar.h"
+#line 540 "c:\\p517\\perl\\lib\\core\\intrpvar.h"
+
+#line 545 "c:\\p517\\perl\\lib\\core\\intrpvar.h"
+
+#line 547 "c:\\p517\\perl\\lib\\core\\intrpvar.h"
I8 Iutf8cache;
char Inumeric_standard;
@@ -323,7 +323,7 @@
char *Inumeric_name;
SV *Inumeric_radix_sv;
-#line 561 "c:\\p517\\perl\\intrpvar.h"
+#line 561 "c:\\p517\\perl\\lib\\core\\intrpvar.h"
SV *IASCII;
SV *ILatin1;
@@ -420,7 +420,7 @@
struct IPerlDir *IDir;
struct IPerlSock *ISock;
struct IPerlProc *IProc;
-#line 669 "c:\\p517\\perl\\intrpvar.h"
+#line 669 "c:\\p517\\perl\\lib\\core\\intrpvar.h"
PTR_TBL_t *Iptr_table;
AV *Ibeginav_save;
@@ -434,15 +434,10 @@
HV **Istashpad;
PADOFFSET Istashpadmax;
PADOFFSET Istashpadix;
-#line 688 "c:\\p517\\perl\\intrpvar.h"
+#line 688 "c:\\p517\\perl\\lib\\core\\intrpvar.h"
HV *Icustom_op_names;
HV *Icustom_op_descs;
-
- PerlIOl *Iperlio;
- PerlIO_list_t *Iknown_layers;
- PerlIO_list_t *Idef_layerlist;
-#line 701 "c:\\p517\\perl\\intrpvar.h"
SV *Iencoding;
@@ -466,7 +461,7 @@
share_proc_t Isharehook;
share_proc_t Ilockhook;
-#line 731 "c:\\p517\\perl\\intrpvar.h"
+#line 731 "c:\\p517\\perl\\lib\\core\\intrpvar.h"
share_proc_t Iunlockhook;
thrhook_proc_t Ithreadhook;
@@ -474,7 +469,7 @@
destroyable_proc_t Idestroyhook;
despatch_signals_proc_t Isignalhook;
-#line 741 "c:\\p517\\perl\\intrpvar.h"
+#line 741 "c:\\p517\\perl\\lib\\core\\intrpvar.h"
HV *Iisarev;
@@ -497,9 +492,9 @@
void **Imy_cxt_list;
int Imy_cxt_size;
-#line 783 "c:\\p517\\perl\\intrpvar.h"
-
-#line 5015 "c:\\p517\\perl\\perl.h"
+#line 783 "c:\\p517\\perl\\lib\\core\\intrpvar.h"
+
+#line 5015 "..\\lib\\CORE\\perl.h"
}; |
@bulk88 what actions do you recommend here? |
Migrated from rt.perl.org#45495 (status was 'open')
Searchable as RT45495$
The text was updated successfully, but these errors were encountered: