X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=nostdio.h;h=f6a13b4998ce0cb2a16dc35bcf76aa04b746d3c0;hb=520bb15084a0e2fc0e05c6506b3265cad2d8f438;hp=fa7ba990b06545a9b3035baa2db8ec87f83031f7;hpb=0e06870bf080a38cda51c06c6612359afc2334e1;p=p5sagit%2Fp5-mst-13.2.git diff --git a/nostdio.h b/nostdio.h index fa7ba99..f6a13b4 100644 --- a/nostdio.h +++ b/nostdio.h @@ -1,7 +1,16 @@ +/* nostdio.h + * + * Copyright (C) 1996, 2000, 2001, 2005, by Larry Wall and others + * + * You may distribute under the terms of either the GNU General Public + * License or the Artistic License, as specified in the README file. + * + */ + /* * Strong denial of stdio - make all stdio calls (we can think of) errors */ -/* This is an 1st attempt to stop other include files pulling +/* This is a 1st attempt to stop other include files pulling in real . A more ambitious set of possible symbols can be found in sfio.h (inside an _cplusplus gard). @@ -59,8 +68,10 @@ struct _FILE; #undef tmpfile #undef ungetc #undef vfprintf +#undef printf #define fprintf _CANNOT _fprintf_ +#define printf _CANNOT _printf_ #define stdin _CANNOT _stdin_ #define stdout _CANNOT _stdout_ #define stderr _CANNOT _stderr_ @@ -100,7 +111,7 @@ struct _FILE; #define _flsbuf(c,f) _CANNOT _flsbuf_ #define fdopen(fd,p) _CANNOT _fdopen_ #define fileno(f) _CANNOT _fileno_ -#if SFIO_VERSION < 20000101L +#if defined(SFIO_VERSION) && SFIO_VERSION < 20000101L #define flockfile(f) _CANNOT _flockfile_ #define ftrylockfile(f) _CANNOT _ftrylockfile_ #define funlockfile(f) _CANNOT _funlockfile_ @@ -113,3 +124,13 @@ struct _FILE; #ifndef OS2 #define pclose(f) _CANNOT _pclose_ #endif + +/* + * Local variables: + * c-indentation-style: bsd + * c-basic-offset: 4 + * indent-tabs-mode: t + * End: + * + * ex: set ts=8 sts=4 sw=4 noet: + */