X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=perlio.c;h=2ddc3f12d0b053b5c89ccf5dfdc60e9eb7d41dd2;hb=8803afc236dca2c2990fc3236c7c43e710a099fb;hp=0a0625cfba32e286139dc10da02033ed80a9d28b;hpb=5b54f415353cb889898fb25391f5dff73990f3f2;p=p5sagit%2Fp5-mst-13.2.git diff --git a/perlio.c b/perlio.c index 0a0625c..2ddc3f1 100644 --- a/perlio.c +++ b/perlio.c @@ -26,7 +26,7 @@ #ifdef PERLIO_IS_STDIO void -PerlIO_init() +PerlIO_init(void) { /* Does nothing (yet) except force this file to be included in perl binary. That allows this file to force inclusion @@ -37,7 +37,7 @@ PerlIO_init() #undef PerlIO_tmpfile PerlIO * -PerlIO_tmpfile() +PerlIO_tmpfile(void) { return tmpfile(); } @@ -308,6 +308,7 @@ char *buf; return fgetname(f,buf); #else croak("Don't know how to get file name"); + return NULL; #endif } @@ -359,7 +360,11 @@ PerlIO *f; #ifdef HAS_SETLINEBUF setlinebuf(f); #else +# ifdef __BORLANDC__ /* Borland doesn't like NULL size for _IOLBF */ + setvbuf(f, Nullch, _IOLBF, BUFSIZ); +# else setvbuf(f, Nullch, _IOLBF, 0); +# endif #endif } @@ -369,7 +374,7 @@ PerlIO_putc(f,ch) PerlIO *f; int ch; { - putc(ch,f); + return putc(ch,f); } #undef PerlIO_ungetc @@ -378,7 +383,7 @@ PerlIO_ungetc(f,ch) PerlIO *f; int ch; { - ungetc(ch,f); + return ungetc(ch,f); } #undef PerlIO_read @@ -605,11 +610,7 @@ char *pat, *args; #ifndef PerlIO_vsprintf int -PerlIO_vsprintf(s,n,fmt,ap) -char *s; -const char *fmt; -int n; -va_list ap; +PerlIO_vsprintf(char *s, int n, const char *fmt, va_list ap) { int val = vsprintf(s, fmt, ap); if (n >= 0)