summaryrefslogtreecommitdiff
path: root/perliol.h
diff options
context:
space:
mode:
authorNick Ing-Simmons <nik@tiuk.ti.com>2001-12-31 12:40:50 +0000
committerNick Ing-Simmons <nik@tiuk.ti.com>2001-12-31 12:40:50 +0000
commit04892f7878d91125ce226bdf0d4e698521c1dfc5 (patch)
treed37854bfc120d40663d98b4ec01f0463d7a26159 /perliol.h
parentd35666f11cdd65f8bd8fdff326555681cfa0aad2 (diff)
downloadperl-04892f7878d91125ce226bdf0d4e698521c1dfc5.tar.gz
perlio.c cleanup - in particular avoid accidental PerlIO_flush(NULL)
if PerlIONext is NULL. p4raw-id: //depot/perlio@13975
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 487a7ff164..331cb9514c 100644
--- a/perliol.h
+++ b/perliol.h
@@ -90,6 +90,7 @@ struct _PerlIO {
#define PerlIOBase(f) (*(f))
#define PerlIOSelf(f,type) ((type *)PerlIOBase(f))
#define PerlIONext(f) (&(PerlIOBase(f)->next))
+#define PerlIOValid(f) ((f) && *(f))
/*--------------------------------------------------------------------------------------*/
/* Data exports - EXT rather than extern is needed for Cygwin */