From 42cab9e71b49fcda5f225ea0debddce0d1123674 Mon Sep 17 00:00:00 2001 From: solar Date: Sun, 4 Apr 2010 12:59:08 +0000 Subject: [PATCH] Cleanups. --- functions/stdio/fgetc.c | 4 ++-- functions/stdio/fputc.c | 4 ++-- functions/stdio/fread.c | 4 ++-- functions/stdio/ftell.c | 2 +- functions/stdio/fwrite.c | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/functions/stdio/fgetc.c b/functions/stdio/fgetc.c index 667bfed..1a90eb9 100644 --- a/functions/stdio/fgetc.c +++ b/functions/stdio/fgetc.c @@ -8,10 +8,10 @@ #include -#ifndef REGTEST - #include <_PDCLIB_glue.h> +#ifndef REGTEST + int fgetc( struct _PDCLIB_file_t * stream ) { if ( _PDCLIB_prepread( stream ) == EOF ) diff --git a/functions/stdio/fputc.c b/functions/stdio/fputc.c index 818d45f..beff43a 100644 --- a/functions/stdio/fputc.c +++ b/functions/stdio/fputc.c @@ -8,10 +8,10 @@ #include -#ifndef REGTEST - #include <_PDCLIB_glue.h> +#ifndef REGTEST + /* Write the value c (cast to unsigned char) to the given stream. Returns c if successful, EOF otherwise. If a write error occurs, the error indicator of the stream is set. diff --git a/functions/stdio/fread.c b/functions/stdio/fread.c index 53e22a6..b77b5dd 100644 --- a/functions/stdio/fread.c +++ b/functions/stdio/fread.c @@ -7,13 +7,13 @@ */ #include +#include <_PDCLIB_glue.h> + #ifndef REGTEST #include #include -#include <_PDCLIB_glue.h> - size_t fread( void * _PDCLIB_restrict ptr, size_t size, size_t nmemb, struct _PDCLIB_file_t * _PDCLIB_restrict stream ) { if ( _PDCLIB_prepread( stream ) == EOF ) diff --git a/functions/stdio/ftell.c b/functions/stdio/ftell.c index 9ca449f..db9eb3d 100644 --- a/functions/stdio/ftell.c +++ b/functions/stdio/ftell.c @@ -44,7 +44,7 @@ int main( void ) */ /* The following functions delegate their tests to here: fgetc fflush rewind fputc ungetc fseek - flushbuffer seek fillbuffer + flushbuffer seek fillbuffer prepread prepwrite */ char * buffer = (char*)malloc( 4 ); FILE * fh; diff --git a/functions/stdio/fwrite.c b/functions/stdio/fwrite.c index 9cf3cad..8e5db3d 100644 --- a/functions/stdio/fwrite.c +++ b/functions/stdio/fwrite.c @@ -7,13 +7,13 @@ */ #include +#include <_PDCLIB_glue.h> + #ifndef REGTEST #include #include -#include <_PDCLIB_glue.h> - size_t fwrite( const void * _PDCLIB_restrict ptr, size_t size, size_t nmemb, struct _PDCLIB_file_t * _PDCLIB_restrict stream ) { if ( _PDCLIB_prepwrite( stream ) == EOF ) -- 2.40.0