X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=perlio.h;h=a6902d4a956933c5ebcd68b888bb60201d05c0f3;hb=c22d4cd038b9aba734088cd649559b23b16fc394;hp=ba9b0676847ea2bf77dc5789f1cdac1ac034527e;hpb=27da23d53ccce622bc51822f59df8def79b4df95;p=p5sagit%2Fp5-mst-13.2.git diff --git a/perlio.h b/perlio.h index ba9b067..a6902d4 100644 --- a/perlio.h +++ b/perlio.h @@ -1,7 +1,7 @@ /* perlio.h * * Copyright (C) 1996, 1997, 1999, 2000, 2001, 2002, 2003, - * by Larry Wall and others + * 2004, 2005, 2006, 2007, 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. @@ -174,8 +174,6 @@ PERL_EXPORT_C void PerlIO_clone(pTHX_ PerlInterpreter *proto, #endif /* ifndef PERLIO_NOT_STDIO */ #endif /* PERLIO_IS_STDIO */ -#define specialCopIO(sv) ((sv) == Nullsv) - /* ----------- fill in things that have not got #define'd ---------- */ #ifndef Fpos_t @@ -210,19 +208,11 @@ PERL_EXPORT_C void PerlIO_clone(pTHX_ PerlInterpreter *proto, START_EXTERN_C #ifndef __attribute__format__ -#ifdef CHECK_FORMAT -#define __attribute__format__(x,y,z) __attribute__((__format__(x,y,z))) -#else -#define __attribute__format__(x,y,z) -#endif -#endif -#ifndef NEXT30_NO_ATTRIBUTE -#ifndef HASATTRIBUTE /* disable GNU-cc attribute checking? */ -#ifdef __attribute__ /* Avoid possible redefinition errors */ -#undef __attribute__ -#endif -#define __attribute__(attr) -#endif +# ifdef HASATTRIBUTE_FORMAT +# define __attribute__format__(x,y,z) __attribute__((format(x,y,z))) +# else +# define __attribute__format__(x,y,z) +# endif #endif #ifndef PerlIO_init PERL_EXPORT_C void PerlIO_init(pTHX); @@ -383,7 +373,8 @@ PERL_EXPORT_C int PerlIO_intmode2str(int rawmode, char *mode, int *writing); #ifdef PERLIO_LAYERS PERL_EXPORT_C void PerlIO_cleanup(pTHX); -PERL_EXPORT_C void PerlIO_debug(const char *fmt, ...); +PERL_EXPORT_C void PerlIO_debug(const char *fmt, ...) + __attribute__format__(__printf__, 1, 2); typedef struct PerlIO_list_s PerlIO_list_t; @@ -391,3 +382,13 @@ typedef struct PerlIO_list_s PerlIO_list_t; END_EXTERN_C #endif /* _PERLIO_H */ + +/* + * Local variables: + * c-indentation-style: bsd + * c-basic-offset: 4 + * indent-tabs-mode: t + * End: + * + * ex: set ts=8 sts=4 sw=4 noet: + */