diff options
author | Nick Ing-Simmons <nik@tiuk.ti.com> | 2001-12-31 12:40:50 +0000 |
---|---|---|
committer | Nick Ing-Simmons <nik@tiuk.ti.com> | 2001-12-31 12:40:50 +0000 |
commit | 04892f7878d91125ce226bdf0d4e698521c1dfc5 (patch) | |
tree | d37854bfc120d40663d98b4ec01f0463d7a26159 /perliol.h | |
parent | d35666f11cdd65f8bd8fdff326555681cfa0aad2 (diff) | |
download | perl-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 */ |