From: solar Date: Tue, 14 Dec 2010 12:09:18 +0000 (+0000) Subject: Tightening the code a bit. X-Git-Tag: v0.5~7 X-Git-Url: https://pd.if.org/git/?p=pdclib;a=commitdiff_plain;h=44db4763a69211be0afa0b336adbb16a0b10f2cb Tightening the code a bit. --- diff --git a/Makefile b/Makefile index da30ee5..f1cf050 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # $Id$ # This is where you chose which platform to compile for (see 'make links' / './platform') -PLATFORM := example +PLATFORM := example_cygwin # This is a list of all non-source files that are part of the distribution. AUXFILES := Makefile Readme.txt diff --git a/functions/stdio/fgetc.c b/functions/stdio/fgetc.c index b5a3257..29522c1 100644 --- a/functions/stdio/fgetc.c +++ b/functions/stdio/fgetc.c @@ -8,10 +8,10 @@ #include -#include <_PDCLIB_glue.h> - #ifndef REGTEST +#include <_PDCLIB_glue.h> + 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 beff43a..818d45f 100644 --- a/functions/stdio/fputc.c +++ b/functions/stdio/fputc.c @@ -8,10 +8,10 @@ #include -#include <_PDCLIB_glue.h> - #ifndef REGTEST +#include <_PDCLIB_glue.h> + /* 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 51e6a7b..52abb73 100644 --- a/functions/stdio/fread.c +++ b/functions/stdio/fread.c @@ -7,10 +7,11 @@ */ #include -#include <_PDCLIB_glue.h> #ifndef REGTEST +#include <_PDCLIB_glue.h> + #include #include diff --git a/functions/stdio/fwrite.c b/functions/stdio/fwrite.c index 4eabd22..8b40551 100644 --- a/functions/stdio/fwrite.c +++ b/functions/stdio/fwrite.c @@ -7,10 +7,11 @@ */ #include -#include <_PDCLIB_glue.h> #ifndef REGTEST +#include <_PDCLIB_glue.h> + #include #include diff --git a/testing/scanf_testcases.h b/testing/scanf_testcases.h index 4cb662e..f8d3b0f 100644 --- a/testing/scanf_testcases.h +++ b/testing/scanf_testcases.h @@ -1,8 +1,5 @@ { char buffer[100]; -#ifndef TEST_CONVERSION_ONLY - SCANF_TEST( 0, "foo", "foo", NULL ); -#endif SCANF_TEST( 1, "foo", "%3c", buffer ); TESTCASE( memcmp( buffer, "foo", 3 ) == 0 ); }