summaryrefslogtreecommitdiff
path: root/perliol.h
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2010-11-16 22:44:34 +0000
committerDavid Mitchell <davem@iabyn.com>2010-11-26 16:01:33 +0000
commit16865ff7e97c2532fd2001d68cf18909acb0d838 (patch)
treebf7fd4576f7ad2bab0182d6a83e8d16a0495acbb /perliol.h
parent303f2dc3d5bda8ee962db318dd53acb167c07485 (diff)
downloadperl-16865ff7e97c2532fd2001d68cf18909acb0d838.tar.gz
add 'head' field to PerlIOl struct
This allows any layer to find the top of the layer stack, or more specifically, the entry in PL_perlio that points to the top. Needed for the next commit, which will implement a reference counting scheme. There's currently a bug in MakeMaker which causes several extensions to miss the dependency on perliol.h having changed, so this commit includes a gratuitous whitespace change to perl.h to hopefully force recompilation.
Diffstat (limited to 'perliol.h')
-rw-r--r--perliol.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/perliol.h b/perliol.h
index d3053a1067..744ffc8870 100644
--- a/perliol.h
+++ b/perliol.h
@@ -67,6 +67,7 @@ struct _PerlIO {
PerlIOl *next; /* Lower layer */
PerlIO_funcs *tab; /* Functions for this layer */
U32 flags; /* Various flags for state */
+ PerlIOl *head; /* our ultimate parent pointer */
};
/*--------------------------------------------------------------------------------------*/