]> pd.if.org Git - pdclib/commitdiff
Whitespace cleanups.
authorMartin Baute <solar@rootdirectory.de>
Fri, 18 Mar 2016 07:10:39 +0000 (08:10 +0100)
committerMartin Baute <solar@rootdirectory.de>
Fri, 18 Mar 2016 07:10:39 +0000 (08:10 +0100)
153 files changed:
Makefile
Notes.txt
Readme.txt
functions/_PDCLIB/Readme.txt
functions/_PDCLIB/assert.c
functions/_PDCLIB/atomax.c
functions/_PDCLIB/closeall.c
functions/_PDCLIB/digits.c
functions/_PDCLIB/errno.c
functions/_PDCLIB/filemode.c
functions/_PDCLIB/prepread.c
functions/_PDCLIB/prepwrite.c
functions/_PDCLIB/print.c
functions/_PDCLIB/scan.c
functions/_PDCLIB/seed.c
functions/_PDCLIB/strtox_main.c
functions/_PDCLIB/strtox_prelim.c
functions/ctype/isalnum.c
functions/ctype/isalpha.c
functions/ctype/isblank.c
functions/ctype/iscntrl.c
functions/ctype/isdigit.c
functions/ctype/isgraph.c
functions/ctype/islower.c
functions/ctype/isprint.c
functions/ctype/ispunct.c
functions/ctype/isspace.c
functions/ctype/isupper.c
functions/ctype/isxdigit.c
functions/ctype/tolower.c
functions/ctype/toupper.c
functions/inttypes/imaxabs.c
functions/inttypes/imaxdiv.c
functions/inttypes/strtoimax.c
functions/inttypes/strtoumax.c
functions/locale/localeconv.c
functions/locale/setlocale.c
functions/stdio/clearerr.c
functions/stdio/fclose.c
functions/stdio/feof.c
functions/stdio/ferror.c
functions/stdio/fflush.c
functions/stdio/fgetc.c
functions/stdio/fgetpos.c
functions/stdio/fgets.c
functions/stdio/fopen.c
functions/stdio/fprintf.c
functions/stdio/fputc.c
functions/stdio/fputs.c
functions/stdio/fread.c
functions/stdio/freopen.c
functions/stdio/fseek.c
functions/stdio/fsetpos.c
functions/stdio/ftell.c
functions/stdio/fwrite.c
functions/stdio/getc.c
functions/stdio/getchar.c
functions/stdio/perror.c
functions/stdio/putc.c
functions/stdio/putchar.c
functions/stdio/puts.c
functions/stdio/rename.c
functions/stdio/rewind.c
functions/stdio/setbuf.c
functions/stdio/setvbuf.c
functions/stdio/sscanf.c
functions/stdio/testfile.txt
functions/stdio/tmpnam.c
functions/stdio/ungetc.c
functions/stdio/vfscanf.c
functions/stdio/vsnprintf.c
functions/stdio/vsscanf.c
functions/stdlib/_Exit.c
functions/stdlib/abort.c
functions/stdlib/abs.c
functions/stdlib/atexit.c
functions/stdlib/atoi.c
functions/stdlib/atol.c
functions/stdlib/atoll.c
functions/stdlib/bsearch.c
functions/stdlib/calloc.c
functions/stdlib/div.c
functions/stdlib/exit.c
functions/stdlib/free.c
functions/stdlib/labs.c
functions/stdlib/ldiv.c
functions/stdlib/llabs.c
functions/stdlib/lldiv.c
functions/stdlib/malloc.c
functions/stdlib/qsort.c
functions/stdlib/rand.c
functions/stdlib/realloc.c
functions/stdlib/srand.c
functions/stdlib/strtol.c
functions/stdlib/strtoll.c
functions/stdlib/strtoul.c
functions/stdlib/strtoull.c
functions/string/memchr.c
functions/string/memcmp.c
functions/string/memcpy.c
functions/string/memmove.c
functions/string/memset.c
functions/string/strcat.c
functions/string/strchr.c
functions/string/strcmp.c
functions/string/strcoll.c
functions/string/strcpy.c
functions/string/strcspn.c
functions/string/strerror.c
functions/string/strlen.c
functions/string/strncat.c
functions/string/strncmp.c
functions/string/strncpy.c
functions/string/strpbrk.c
functions/string/strrchr.c
functions/string/strspn.c
functions/string/strstr.c
functions/string/strtok.c
functions/string/strxfrm.c
includes/ctype.h
includes/errno.h
includes/inttypes.h
includes/iso646.h
includes/limits.h
includes/locale.h
includes/stdarg.h
includes/stdbool.h
includes/stddef.h
includes/stdint.h
includes/stdio.h
includes/stdlib.h
internals/_PDCLIB_glue.h
internals/_PDCLIB_int.h
platform/example/Readme.txt
platform/example/functions/_PDCLIB/_Exit.c
platform/example/functions/_PDCLIB/allocpages.c
platform/example/functions/_PDCLIB/close.c
platform/example/functions/_PDCLIB/fillbuffer.c
platform/example/functions/_PDCLIB/flushbuffer.c
platform/example/functions/_PDCLIB/open.c
platform/example/functions/_PDCLIB/rename.c
platform/example/functions/_PDCLIB/seek.c
platform/example/functions/_PDCLIB/stdinit.c
platform/example/functions/signal/raise.c
platform/example/functions/signal/signal.c
platform/example/functions/stdio/remove.c
platform/example/functions/stdio/tmpfile.c
platform/example/functions/stdlib/getenv.c
platform/example/functions/stdlib/system.c
platform/example/includes/signal.h
platform/example/internals/_PDCLIB_config.h
testing/_PDCLIB_test.h
testing/printf_testcases.h

index 0d0c8e0acbe29d4774f01626660580dd91cda9d2..8042f30e0b356c328a84f7e7bfda4be844d595a7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -22,10 +22,10 @@ REGDEPFILES := $(patsubst %,%.d,$(REGFILES))
 # All files belonging to the source distribution
 ALLFILES := $(SRCFILES) $(HDRFILES) $(AUXFILES)
 
-WARNINGS := -Wall -Wextra -pedantic -Wno-unused-parameter -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -Winline -Wno-long-long -Wuninitialized -Wstrict-prototypes 
+WARNINGS := -Wall -Wextra -pedantic -Wno-unused-parameter -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -Winline -Wno-long-long -Wuninitialized -Wstrict-prototypes
 CFLAGS := -fno-builtin -g -std=c99 -I./internals -I./testing -I./platform/example/include -I./platform/example/internals $(WARNINGS) $(USERFLAGS)
 
-.PHONY: all clean srcdist bindist test tests testdrivers regtests regtestdrivers todos fixmes find links unlink help
+.PHONY: all clean srcdist tests testdrivers regtests regtestdrivers todos fixmes help
 
 all: pdclib.a testdrivers regtestdrivers
        @echo
index 2dc59c21ea143df4b9f674af2b1ad52aa85f209a..8c718fd6d09dee57d5eac98c63ef4648a6136930 100644 (file)
--- a/Notes.txt
+++ b/Notes.txt
@@ -107,4 +107,3 @@ obsessive when it comes to coding style. ;-)
   hopefully keeping overly ambitious editors from repeating my mistakes. The
   header files especially should be self-documenting to the point of being a
   suitable replacement for any library reference book you might be using.
-
index 14df1a62f8eddb8b6f5db0c1bf9774f7708f0025..40a6e97044ce552b52410b5cd9a278fbda5117ce 100644 (file)
@@ -212,4 +212,3 @@ I want this released, and I want to think about something else but
 So, expect significant change to how stdio is done in upcoming releases.
 Everything *WILL* be stable by the time v1.0 comes around, but until then
 you will have to accept that I can only deliver "hobby quality" for now.
-
index 46796879c09956c5c53225b8dbe6d4c2da0e42dc..5010942297d752bf48ef37da964ffb5a08d1360a 100644 (file)
@@ -8,4 +8,3 @@ This directory holds various "internals" of PDCLib:
 
 - test drivers for functionality that does not have its own implementation
   file to put the test driver in.
-
index f4d2cbc2a0511f00bd8030ce43dec5f0d064a2b9..a8fc25b76182bd6d55d01be87512f62024c305d1 100644 (file)
@@ -29,7 +29,9 @@ void _PDCLIB_assert89( char const * const message )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
+
 #include <signal.h>
 
 static int EXPECTED_ABORT = 0;
@@ -42,6 +44,7 @@ static void aborthandler( int sig )
 }
 
 #define NDEBUG
+
 #include <assert.h>
 
 static int disabled_test( void )
@@ -53,6 +56,7 @@ static int disabled_test( void )
 }
 
 #undef NDEBUG
+
 #include <assert.h>
 
 int main( void )
index f05a8af8e074e2337e1defdb5b1ada90c49093fb..eaf7ced007d8f3f9114e5af0533b7b9a607c9a74 100644 (file)
@@ -29,6 +29,7 @@ _PDCLIB_intmax_t _PDCLIB_atomax( const char * s )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
index 6c2bed4f1ba0f4e5b23944fc14b722e761942228..3c928e747322eb44e018a68003e86c555b533e35 100644 (file)
@@ -25,6 +25,7 @@ void _PDCLIB_closeall( void )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
@@ -34,4 +35,3 @@ int main( void )
 }
 
 #endif
-
index 6fb7f071b13abf25ca03c335cf1978a67e232a35..d921c2dd704d3e4ef763a9fdb9c64b97f1808764 100644 (file)
@@ -12,6 +12,7 @@ char _PDCLIB_digits[] = "0123456789abcdefghijklmnopqrstuvwxyz";
 char _PDCLIB_Xdigits[] = "0123456789ABCDEF";
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 #include <string.h>
index 4cf5ea5b1458984fcaef019189cffcb496e98d7a..9f84d339c0a68b12d893fd3a99da66424362341a 100644 (file)
@@ -18,6 +18,7 @@ int * _PDCLIB_errno_func()
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 #include <errno.h>
@@ -34,4 +35,3 @@ int main( void )
 }
 
 #endif
-
index 9c3ec248f93eae3afc33639f39c9d16299508a73..4c68e8beed93fc67ebdaf8efc251674b6e5cb5f4 100644 (file)
@@ -57,6 +57,7 @@ unsigned int _PDCLIB_filemode( char const * const mode )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
@@ -86,4 +87,3 @@ int main( void )
 }
 
 #endif
-
index 2c5818ae58b91adeffc74e3c4a6974d1239a5f3b..d55ef69f481df8746b1ddddccf2d368b571d4c57 100644 (file)
@@ -7,6 +7,7 @@
 #include <stdio.h>
 
 #ifndef REGTEST
+
 #include "_PDCLIB_glue.h"
 
 int _PDCLIB_prepread( struct _PDCLIB_file_t * stream )
@@ -37,6 +38,7 @@ int _PDCLIB_prepread( struct _PDCLIB_file_t * stream )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
@@ -46,4 +48,3 @@ int main( void )
 }
 
 #endif
-
index a901ccdaed39f10e4674ad727696c49c1341016e..dcdc970be8da45fe383e585c7c2fdff0f42dddee 100644 (file)
@@ -29,6 +29,7 @@ int _PDCLIB_prepwrite( struct _PDCLIB_file_t * stream )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
@@ -38,4 +39,3 @@ int main( void )
 }
 
 #endif
-
index 768b4a60c060b8a6a1f1c7de959518c79caa2296..1c0f5d6d62509280ad3a75aeda0dd4398043e08f 100644 (file)
@@ -16,8 +16,7 @@
    modifiers.
 */
 /* FIXME: one too many flags to work on a 16-bit machine, join some (e.g. the
-          width flags) into a combined field.
-*/
+          width flags) into a combined field.  */
 #define E_minus    1<<0
 #define E_plus     1<<1
 #define E_alt      1<<2
@@ -548,6 +547,7 @@ static int testprintf( char * buffer, const char * format, ... )
     va_end( status.arg );
     return status.i;
 }
+
 #endif
 
 #define TEST_CONVERSION_ONLY
index 7d11a9c27e1204155cf9358dcb9bed473e3994bf..ccd3cdb9a01cb6003531780406a75e85e80b508d 100644 (file)
@@ -603,6 +603,7 @@ const char * _PDCLIB_scan( const char * spec, struct _PDCLIB_status_t * status )
 #include "_PDCLIB_test.h"
 
 #ifndef REGTEST
+
 static int testscanf( char const * s, char const * format, ... )
 {
     struct _PDCLIB_status_t status;
@@ -619,6 +620,7 @@ static int testscanf( char const * s, char const * format, ... )
     va_end( status.arg );
     return status.n;
 }
+
 #endif
 
 #define TEST_CONVERSION_ONLY
index 37c9b4798895dbfc8b64aa21a10078d737e9f025..ce7c31c539b6fd03d09f20cc1fdb2b2ad13bbd03 100644 (file)
@@ -7,6 +7,7 @@
 unsigned long int _PDCLIB_seed = 1;
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
index 3bfdbb8b5bf2d857dfff5c7ecda9ceafad88f041..480895267f03bcecba0bfbb6150e5937d08c9f6f 100644 (file)
@@ -46,7 +46,9 @@ _PDCLIB_uintmax_t _PDCLIB_strtox_main( const char ** p, unsigned int base, uintm
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
+
 #include <errno.h>
 
 int main( void )
index 98f7fcea758145facf450f0aff74a6a767ebd7ea..6e16b35d17f41c36528ae3b1bc773fbbac13cfbf 100644 (file)
@@ -54,6 +54,7 @@ const char * _PDCLIB_strtox_prelim( const char * p, char * sign, int * base )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
index 52a0cd14e6918f5d4af21695911bc2b634dfa17f..2f02ef04ffd1fe9ce81b110d0a98612a1df2b926 100644 (file)
@@ -18,6 +18,7 @@ int isalnum( int c )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
index a4812d4b2d4d5a7c0ef89cd62e0e66474508ec03..962cff2bc8db24f5b2e8b3216193eb0a94030a76 100644 (file)
@@ -18,6 +18,7 @@ int isalpha( int c )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
index 1ce4931c9b791ed58ed8e173bee5f4d923c58bf7..06c5362d371ed3581103125fe4d80f5dd5e75482 100644 (file)
@@ -18,6 +18,7 @@ int isblank( int c )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
index 755a67c3d3e17fcbe1f9596d922db9c5d8d3e41e..2f885db7de6cc046e51c33b98631a515389404db 100644 (file)
@@ -18,6 +18,7 @@ int iscntrl( int c )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
index 6a311d92fa2c9c004c46365f26f8d42fd9274587..72714a553400b46c560e87de4e9b92adb82cee2a 100644 (file)
@@ -18,6 +18,7 @@ int isdigit( int c )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
index 932b7be88292b11d937dc5c4d8d3ed272f5d371e..166baedc275f3556e6eff05fb93850f6dea87905 100644 (file)
@@ -18,6 +18,7 @@ int isgraph( int c )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
index 5a97887489c7d2b539d724ada00cb245fc7b2010..3fcfe7b7b9da092b1ab9c1c757976db5b1b562c3 100644 (file)
@@ -18,6 +18,7 @@ int islower( int c )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
index bcafd093d04e1145a34b8ac014d9759c0323b6d6..6a7a2542404d872880275841c2734778700e8d95 100644 (file)
@@ -18,6 +18,7 @@ int isprint( int c )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
index d7ad21e667d3d141a7c6a1a5abc5ec7b624cb326..8b3ab69c481bb7fb55584c4e62bd9eeebeb50dd5 100644 (file)
@@ -18,6 +18,7 @@ int ispunct( int c )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
index ef0a913f0603f3d1abdbe4138cb9445aa6be4e2a..8cc08bf66b6e52595943ea44799f8d86526a2ae9 100644 (file)
@@ -18,6 +18,7 @@ int isspace( int c )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
index 96d27704724ea5ccf12f2301a30e9057847fa02d..02589a606f8f8919c65bfe603b1f12d68c24a29c 100644 (file)
@@ -18,6 +18,7 @@ int isupper( int c )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
index 51cd7279558c4b62d7074ac7745f717de54f78e0..4d4da56599c65e60c010bde3a29874dff4828906 100644 (file)
@@ -18,6 +18,7 @@ int isxdigit( int c )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
index fa9fbf5b9188ab59968ea2c5ca1036d8b2eedae2..573112e373604227c397152a78bf88dff531b8ed 100644 (file)
@@ -18,6 +18,7 @@ int tolower( int c )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
@@ -30,4 +31,5 @@ int main( void )
     TESTCASE( tolower( '[' ) == '[' );
     return TEST_RESULTS;
 }
+
 #endif
index 2168134631d7743de1122e151591b8a9267a1e3c..2ef335960232d69a4c0557bde7d7d6240c15aa4b 100644 (file)
@@ -18,6 +18,7 @@ int toupper( int c )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
@@ -30,4 +31,5 @@ int main( void )
     TESTCASE( toupper( '[' ) == '[' );
     return TEST_RESULTS;
 }
+
 #endif
index 79f3dd2ab8efca9703538797fdda7582d58e6375..06d029ecc82476bdf35029b307053449aa30332c 100644 (file)
@@ -16,7 +16,9 @@ intmax_t imaxabs( intmax_t j )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
+
 #include <limits.h>
 
 int main( void )
index 553f22e7faf81e64e9de2e2dd65548e51f48deeb..7143c3d04c42910212ceceb22279e715ff363421 100644 (file)
@@ -19,6 +19,7 @@ imaxdiv_t imaxdiv( intmax_t numer, intmax_t denom )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
index f58a0be9f0aa2189bfb1e9976b5b100b96431033..29a3c92ecc53e37467af39a1dbd2baf2e4524ad3 100644 (file)
@@ -32,6 +32,7 @@ intmax_t strtoimax( const char * _PDCLIB_restrict nptr, char ** _PDCLIB_restrict
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 #include <errno.h>
index f998338babfd5d6c0f674f3204fffc79ec49eef4..9ed16c18ddde4840a41b04b4774009a6a11a121d 100644 (file)
@@ -25,7 +25,9 @@ uintmax_t strtoumax( const char * _PDCLIB_restrict nptr, char ** _PDCLIB_restric
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
+
 #include <errno.h>
 
 int main( void )
index 82bf474140ac00c50cc822d4e49dfea9f8a9eeab..56d3d143a9757a38fb94c3621195805f5ae85be6 100644 (file)
@@ -16,6 +16,7 @@ struct lconv * localeconv( void )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
@@ -23,4 +24,5 @@ int main( void )
     TESTCASE( NO_TESTDRIVER );
     return TEST_RESULTS;
 }
+
 #endif
index 20b434d3d94ce70c2fe21f895e226d45768d3b84..c4d88e14c7edbb9d7d9baddbf20a83f4e51e1810 100644 (file)
@@ -16,6 +16,7 @@ char * setlocale( int category, const char * locale )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
@@ -23,4 +24,5 @@ int main( void )
     TESTCASE( NO_TESTDRIVER );
     return TEST_RESULTS;
 }
+
 #endif
index ca22b0332b72b3f8f84bf3c490e2cd520e068a43..91cd00a6655e9d619efd5a5f6e48301a0d0f832a 100644 (file)
@@ -16,6 +16,7 @@ void clearerr( struct _PDCLIB_file_t * stream )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
@@ -49,4 +50,3 @@ int main( void )
 }
 
 #endif
-
index a5b9e96942cbbeb6d0c310e5c34db2020c637eda..7871833c0069c993ef50b89a0595bb4cb96ec1fa 100644 (file)
@@ -8,6 +8,7 @@
 #include <stdlib.h>
 
 #ifndef REGTEST
+
 #include "_PDCLIB_glue.h"
 
 extern struct _PDCLIB_file_t * _PDCLIB_filelist;
@@ -66,6 +67,7 @@ int fclose( struct _PDCLIB_file_t * stream )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
@@ -97,4 +99,3 @@ int main( void )
 }
 
 #endif
-
index 06073bdd22f316ea2590558e4ee9301a57773586..a57071f9f949c53d2155f9de4fc55888d4c9f4f1 100644 (file)
@@ -16,6 +16,7 @@ int feof( struct _PDCLIB_file_t * stream )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
@@ -25,4 +26,3 @@ int main( void )
 }
 
 #endif
-
index 7b56637f2fb24ebeea411757613f28c90a740d56..54f43f0133ea0ab598ae7eff5b2dfd5016c9436d 100644 (file)
@@ -16,6 +16,7 @@ int ferror( struct _PDCLIB_file_t * stream )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
@@ -25,4 +26,3 @@ int main( void )
 }
 
 #endif
-
index d2ed11b28fd85dbd130428a131c93460ddc3c186..5a0bc3662b57d725e3411afd6b0a2dd1e52c0617 100644 (file)
@@ -7,6 +7,7 @@
 #include <stdio.h>
 
 #ifndef REGTEST
+
 #include "_PDCLIB_glue.h"
 
 extern struct _PDCLIB_file_t * _PDCLIB_filelist;
@@ -36,10 +37,11 @@ int fflush( struct _PDCLIB_file_t * stream )
         return _PDCLIB_flushbuffer( stream );
     }
 }
-                
+
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
@@ -49,4 +51,3 @@ int main( void )
 }
 
 #endif
-
index b75942973f6a2d1d2250cc066b37ff0fc3544f4c..823bef7fbbdce38f5f837d3e56df79588dbd18f8 100644 (file)
@@ -26,6 +26,7 @@ int fgetc( struct _PDCLIB_file_t * stream )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
index 4934b4292d4d86bdcb065921f8ed5d3c48661a9c..db9be06792fd1c554d5ec8d15f421e80640de567 100644 (file)
@@ -19,7 +19,9 @@ int fgetpos( struct _PDCLIB_file_t * _PDCLIB_restrict stream, struct _PDCLIB_fpo
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
+
 #include <string.h>
 
 int main( void )
index 955c48d8ff64f6c023889ef129cd4ab567f413c1..2e4432d38f4257ecd4b9c8fb8654d5db58257ff7 100644 (file)
@@ -47,7 +47,9 @@ char * fgets( char * _PDCLIB_restrict s, int size, struct _PDCLIB_file_t * _PDCL
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
+
 #include <string.h>
 
 int main( void )
@@ -84,4 +86,3 @@ int main( void )
 }
 
 #endif
-
index fa0185f9f320b781c3dbff0565d3e08425eed0de..3bbab78c53f67b34911bd927f99093ed85b9f4b6 100644 (file)
@@ -8,7 +8,9 @@
 #include <stdlib.h>
 
 #ifndef REGTEST
+
 #include "_PDCLIB_glue.h"
+
 #include <string.h>
 
 extern struct _PDCLIB_file_t * _PDCLIB_filelist;
@@ -35,7 +37,7 @@ struct _PDCLIB_file_t * fopen( const char * _PDCLIB_restrict filename, const cha
         /* no memory */
         return NULL;
     }
-    if ( ( rc->status = _PDCLIB_filemode( mode ) ) == 0 ) 
+    if ( ( rc->status = _PDCLIB_filemode( mode ) ) == 0 )
     {
         /* invalid mode */
         free( rc );
@@ -73,6 +75,7 @@ struct _PDCLIB_file_t * fopen( const char * _PDCLIB_restrict filename, const cha
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
index 19746274f3a6d77ffc4a432cb7cc9877fbf08b63..e95f575e2fac1c7422815589f4e28bcfd5d647c1 100644 (file)
@@ -39,4 +39,3 @@ int main( void )
 }
 
 #endif
-
index 1ea99e9d952adb4524693f4ca5c2e177b3d2604b..872b741916cfc26460e8372a8ff710b530dd7fe5 100644 (file)
@@ -35,6 +35,7 @@ int fputc( int c, struct _PDCLIB_file_t * stream )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
index bb5593bd5d8abdd54e5674abbef6bf6dc427c89a..fd181cf36f3483121067f31d4726ccf666d4e041 100644 (file)
@@ -7,6 +7,7 @@
 #include <stdio.h>
 
 #ifndef REGTEST
+
 #include "_PDCLIB_glue.h"
 
 int fputs( const char * _PDCLIB_restrict s, struct _PDCLIB_file_t * _PDCLIB_restrict stream )
@@ -44,7 +45,9 @@ int fputs( const char * _PDCLIB_restrict s, struct _PDCLIB_file_t * _PDCLIB_rest
 }
 
 #endif
+
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
@@ -63,4 +66,3 @@ int main( void )
 }
 
 #endif
-
index 87b7acc1e5d0cb8c6db156ca3183c4a5a478e1b5..5b093ff6fb2507ced8640c00f6fbcf0345cb78e8 100644 (file)
@@ -5,14 +5,13 @@
 */
 
 #include <stdio.h>
+#include <stdbool.h>
+#include <string.h>
 
 #ifndef REGTEST
 
 #include "_PDCLIB_glue.h"
 
-#include <stdbool.h>
-#include <string.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 )
@@ -42,6 +41,7 @@ size_t fread( void * _PDCLIB_restrict ptr, size_t size, size_t nmemb, struct _PD
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
@@ -79,4 +79,3 @@ int main( void )
 }
 
 #endif
-
index c4bb34c497eff22b04c4102f17120282e9a363e5..29d72eb77499b144be050080377ca7875720e971 100644 (file)
@@ -5,12 +5,12 @@
 */
 
 #include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
 
 #ifndef REGTEST
 
 #include "_PDCLIB_glue.h"
-#include <stdlib.h>
-#include <string.h>
 
 struct _PDCLIB_file_t * freopen( const char * _PDCLIB_restrict filename, const char * _PDCLIB_restrict mode, struct _PDCLIB_file_t * _PDCLIB_restrict stream )
 {
@@ -75,6 +75,7 @@ struct _PDCLIB_file_t * freopen( const char * _PDCLIB_restrict filename, const c
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
index 6f56b6ef4ad894ded3ce4cfa4adf7664c4b746ad..c8427f8c9a32b418c0d1364bb7592ac437c58bfb 100644 (file)
@@ -30,7 +30,9 @@ int fseek( struct _PDCLIB_file_t * stream, long offset, int whence )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
+
 #include <string.h>
 
 int main( void )
@@ -81,4 +83,3 @@ int main( void )
 }
 
 #endif
-
index 32d18ba834eb8184c772480b985ff604806f3866..f2ebd2ae64e665e350e44528894c9ccd411255d6 100644 (file)
@@ -7,6 +7,7 @@
 #include <stdio.h>
 
 #ifndef REGTEST
+
 #include "_PDCLIB_glue.h"
 
 int fsetpos( struct _PDCLIB_file_t * stream, const struct _PDCLIB_fpos_t * pos )
@@ -30,6 +31,7 @@ int fsetpos( struct _PDCLIB_file_t * stream, const struct _PDCLIB_fpos_t * pos )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
index bf6f792b892d1fdd5eee9c4ffc60b63ba61bfd67..f4bd300713c60b92b9f4a06f223c4ed24719c23b 100644 (file)
@@ -42,6 +42,7 @@ long int ftell( struct _PDCLIB_file_t * stream )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 #include <stdlib.h>
@@ -97,4 +98,3 @@ int main( void )
 }
 
 #endif
-
index 482cdb818c2fef39ccc3713178da6a9f22b83da5..e64e36c96662427d69199a815dcccc0dbdecadcd 100644 (file)
@@ -5,14 +5,13 @@
 */
 
 #include <stdio.h>
+#include <stdbool.h>
+#include <string.h>
 
 #ifndef REGTEST
 
 #include "_PDCLIB_glue.h"
 
-#include <stdbool.h>
-#include <string.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 )
@@ -82,6 +81,7 @@ size_t fwrite( const void * _PDCLIB_restrict ptr, size_t size, size_t nmemb, str
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
@@ -91,4 +91,3 @@ int main( void )
 }
 
 #endif
-
index 57ba171fc40179853d26ebea37e72476004e7045..3d082b3213db4162f37972f9da160afe9eb1e74e 100644 (file)
@@ -16,6 +16,7 @@ int getc( struct _PDCLIB_file_t * stream )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
index 7e1fc744373d64279828574c3f6d80263abff5d8..34ee54508e7e9d029d779a9265b2b0ecd6f1e89f 100644 (file)
@@ -16,6 +16,7 @@ int getchar( void )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
index a5185980dbbb978324858d7732b1d56d856dda79..022f82ddcdbd97c9491c53ccf8c90c23c5d080d4 100644 (file)
@@ -5,12 +5,11 @@
 */
 
 #include <stdio.h>
-
-#ifndef REGTEST
-
 #include <errno.h>
 #include <locale.h>
 
+#ifndef REGTEST
+
 /* TODO: Doing this via a static array is not the way to do it. */
 void perror( const char * s )
 {
@@ -32,7 +31,9 @@ void perror( const char * s )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
+
 #include <stdlib.h>
 #include <string.h>
 #include <limits.h>
index 7693ba9a3eb0bcfec7903f6d08440a021f166e50..c1eb2b06cf48eecbd0429a12629102aa2de483da 100644 (file)
@@ -16,6 +16,7 @@ int putc( int c, struct _PDCLIB_file_t * stream )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
index 2711fd795acd6deeca5b3fc0893149b0dcbaa4fd..15bf29998f469a5462b45725d2e79a1966cd39a2 100644 (file)
@@ -16,6 +16,7 @@ int putchar( int c )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
index 94472ae1f514d65ad145828d7cafcb07cdf7c7ec..aa759dc17839d539d4bd936267c0e6ff09967970 100644 (file)
@@ -7,6 +7,7 @@
 #include <stdio.h>
 
 #ifndef REGTEST
+
 #include "_PDCLIB_glue.h"
 
 extern char * _PDCLIB_eol;
@@ -43,6 +44,7 @@ int puts( const char * s )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
@@ -63,4 +65,3 @@ int main( void )
 }
 
 #endif
-
index cd81c6a169f55794486359ac82460e510b334065..cba22c8515a1c0a49170ec9f91a9f685b93547e7 100644 (file)
@@ -7,6 +7,7 @@
 #include <stdio.h>
 
 #ifndef REGTEST
+
 #include "_PDCLIB_glue.h"
 
 #include <string.h>
@@ -31,6 +32,7 @@ int rename( const char * old, const char * new )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 #include <stdlib.h>
@@ -80,4 +82,3 @@ int main( void )
 }
 
 #endif
-
index d54d3749e8753093b1c8c406eaa174381962556e..a449b7d03cd55945c27523929fa2a1502dbc0dfa 100644 (file)
@@ -17,6 +17,7 @@ void rewind( struct _PDCLIB_file_t * stream )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
index 48e4b8c89575ea1d90faa385abc7dde36fed1c3f..6c32072876efd1afe09ae7b14ec2aece96c564c5 100644 (file)
@@ -23,7 +23,9 @@ void setbuf( struct _PDCLIB_file_t * _PDCLIB_restrict stream, char * _PDCLIB_res
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
+
 #include <stdlib.h>
 
 int main( void )
index dca570656a3c92528821fa3d419f997ea274b4bc..00592ff94bb8c20fff24495f0ad7c557e1e680a5 100644 (file)
@@ -36,7 +36,7 @@ int setvbuf( struct _PDCLIB_file_t * _PDCLIB_restrict stream, char * _PDCLIB_res
                 */
                 /* If current buffer is big enough for requested size, but not
                    over twice as big (and wasting memory space), we use the
-                   current buffer (i.e., do nothing), to save the malloc() / 
+                   current buffer (i.e., do nothing), to save the malloc() /
                    free() overhead.
                 */
                 if ( ( stream->bufsize < size ) || ( stream->bufsize > ( size << 1 ) ) )
@@ -68,6 +68,7 @@ int setvbuf( struct _PDCLIB_file_t * _PDCLIB_restrict stream, char * _PDCLIB_res
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 #include <errno.h>
@@ -105,4 +106,3 @@ int main( void )
 }
 
 #endif
-
index 5de77ae45c7a28745de7c8a5e56cc8cd5a1f8460..9ba830deb5186f62e99784e78091a239500cda91 100644 (file)
@@ -37,4 +37,3 @@ int main( void )
 }
 
 #endif
-
index 62f1825430243cb0b7e4c8498195bb38fb5d7dbc..f08c4d3b87ef22e66285ea7553db8181555b0561 100644 (file)
Binary files a/functions/stdio/testfile.txt and b/functions/stdio/testfile.txt differ
index 276a42c275be61906fb60ea97f7bd998db6f0c17..6b444cea2877f2f6c49b80f8a6148098413b4f73 100644 (file)
@@ -8,9 +8,10 @@
 
 #ifndef REGTEST
 
-#include <string.h>
 #include "_PDCLIB_glue.h"
 
+#include <string.h>
+
 char * tmpnam( char * s )
 {
     static char filename[ L_tmpnam ];
@@ -27,6 +28,7 @@ char * tmpnam( char * s )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 #include <string.h>
@@ -38,4 +40,3 @@ int main( void )
 }
 
 #endif
-
index 240dc401f507088138c5ff9bfd33d2bb164beaec..dc5260b63a1a769bd37650e4be1fbad0c67f24e6 100644 (file)
@@ -20,6 +20,7 @@ int ungetc( int c, struct _PDCLIB_file_t * stream )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
index eeae09eec4cde33a69a1b55f6fb607fdfae6c2c1..a19f18ef13e6fc9233572dd735da66d419ceb4be 100644 (file)
@@ -110,4 +110,3 @@ int main( void )
 }
 
 #endif
-
index e890c71a48173c1e5edc3d9c861b00e8891e6cc6..3fba9706cdeaf59d1ce2a2b9457debb3e88506ee 100644 (file)
@@ -77,4 +77,3 @@ int main( void )
 }
 
 #endif
-
index 9209726dccc795e49ded9a758f5e2737b712226f..a9076d0291e4030a0f58798a3d9824f5aaad374e 100644 (file)
@@ -6,9 +6,9 @@
 
 #include <stdio.h>
 #include <stdarg.h>
+#include <ctype.h>
 
 #ifndef REGTEST
-#include <ctype.h>
 
 int vsscanf( const char * _PDCLIB_restrict s, const char * _PDCLIB_restrict format, va_list arg )
 {
index 5a43ee2379619c166d54e7289517f9f32c7fef93..a1375d96c9752493b158c53f549662bd8b5817a1 100644 (file)
@@ -8,6 +8,7 @@
 #include <stdio.h>
 
 #ifndef REGTEST
+
 #include "_PDCLIB_glue.h"
 
 void _Exit( int status )
@@ -21,6 +22,7 @@ void _Exit( int status )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
index 0c3428340c2ecde0a105180ab7adde89f849f1a5..69422f919db6602182738e76d54b4f90deef6b34 100644 (file)
@@ -18,6 +18,7 @@ void abort( void )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 #include <stdio.h>
index 4e8302bdb2356d9be3a41297564cee0fa4dafd8a..7a634e3ab538c0ec08c00439b79c4438878d9a29 100644 (file)
@@ -16,7 +16,9 @@ int abs( int j )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
+
 #include <limits.h>
 
 int main( void )
index 89832f1ea25dd4f691cd198c3acb286b612904de..42a98ed0dec0689537dca0a2373fd7f7e9056b4b 100644 (file)
@@ -27,7 +27,9 @@ int atexit( void (*func)( void ) )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
+
 #include <assert.h>
 
 static int flags[ 32 ];
index eac0e1652ce71d03a4d5ec11889d6e8209d07d27..eaa9100b336562758b7d865055fdc58c967da48d 100644 (file)
@@ -16,6 +16,7 @@ int atoi( const char * s )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
index fb5e512142b5285a797945ef4162020e7f776118..df17e83d44b15c912ac163831b3d0b29b0cf64f7 100644 (file)
@@ -16,6 +16,7 @@ long int atol( const char * s )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
index f7fa8244023068be643352661d8f721feb77ece2..8b65b35b79fb7c4fc764f5afd0fd73e26195e193 100644 (file)
@@ -16,6 +16,7 @@ long long int atoll( const char * s )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
index 835407f5ee8e2314100cee595a1e25d44346d5a3..211c55c0a82082c1cbd706cd3e6e6988678193b2 100644 (file)
@@ -37,6 +37,7 @@ void * bsearch( const void * key, const void * base, size_t nmemb, size_t size,
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 static int compare( const void * left, const void * right )
index abb63b08fa3ff02b47b0d744a372be656b6b5164..d736065911e96aa1bced8dada0191092953737d3 100644 (file)
@@ -24,6 +24,7 @@ void * calloc( size_t nmemb, size_t size )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
index 8aabad6dd69882ac369f1a621e06719258d7592f..5d502c8df69b88cc7a1edb101252dc770ad018fe 100644 (file)
@@ -20,6 +20,7 @@ div_t div( int numer, int denom )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
index 1fe84ef060e25e75a7b06662e27614595ed560b7..b922cb01b7d80b0f3ff0d97ec03769d2514cc91b 100644 (file)
@@ -32,6 +32,7 @@ void exit( int status )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
index 2dc9d6d1bd95f5134afab8dde9d58fa3ddec4400..b1cdc75a9d6095ed663b51435448a8720e21cefa 100644 (file)
@@ -37,7 +37,9 @@ void free( void * ptr )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
+
 #include <stdbool.h>
 
 int main( void )
index 2888928f8e0bb23cd46b48245bfacf464b14e688..365345343ed8ef2b11b047c4d529aec8995e7dba 100644 (file)
@@ -16,7 +16,9 @@ long int labs( long int j )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
+
 #include <limits.h>
 
 int main( void )
index cf579fb38358affd843fd2577fa772e3ce2a39a0..0f51944fac77df4e4111da70617ace732d5354b8 100644 (file)
@@ -20,6 +20,7 @@ ldiv_t ldiv( long int numer, long int denom )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
index 78a56c30095ca944c09d7b93517ec7f7feb4a2f5..bc05bf3d0fb0cd7dc05b7f25d31ebf81ee300b52 100644 (file)
@@ -16,7 +16,9 @@ long long int llabs( long long int j )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
+
 #include <limits.h>
 
 int main( void )
index e6552c3447a9d5167a7852b53fc203bc2c99be5f..4219e31ba110b79458f51aed9da31b476e7e25ce 100644 (file)
@@ -20,6 +20,7 @@ lldiv_t lldiv( long long int numer, long long int denom )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
index 32235a2d4a2160c0219fbc616b0e826d630eb428..641a859f34565b686c12ad33d8f7c03178098e57 100644 (file)
@@ -240,7 +240,7 @@ int test_nodes( char const * const action, int expected_pages, ... )
     PRINT( "   - memlist first: %#.4x - last: %#.4x",
             ( _PDCLIB_memlist.first == NULL ) ? NULL : (char *)_PDCLIB_memlist.first - (char *)pages_start,
             ( _PDCLIB_memlist.last == NULL ) ? NULL : (char *)_PDCLIB_memlist.last - (char *)pages_start );
-    if ( ( firstnode != 0 ) && 
+    if ( ( firstnode != 0 ) &&
          ( ( ( (char *)_PDCLIB_memlist.first - (char *)pages_start ) != firstnode )
          || ( ( (char *)_PDCLIB_memlist.last  - (char *)pages_start ) != lastnode ) ) )
     {
@@ -255,7 +255,7 @@ int test_nodes( char const * const action, int expected_pages, ... )
     return result;
 }
 
-#endif 
+#endif
 
 /* Note that this test driver heavily tests *internals* of the implementation
    above (and of free() and realloc(), too). That means that changes in the
@@ -270,7 +270,7 @@ int main( void )
     void * ptr1, * ptr2, * ptr3, * ptr4, * ptr5, * ptr6, * ptr7, * ptr8, * ptr9, * ptrA, * ptrB, * ptrC;
 
     pages_start = _PDCLIB_allocpages( 0 );
-    PRINT( "\nEffective is: %#.4x\nsizeof( memnode ) is: %#.2x\n\n", EFFECTIVE, sizeof( struct _PDCLIB_memnode_t ) ); 
+    PRINT( "\nEffective is: %#.4x\nsizeof( memnode ) is: %#.2x\n\n", EFFECTIVE, sizeof( struct _PDCLIB_memnode_t ) );
 
     /* Allocating 10 bytes; expecting one page allocation and a node split */
     TESTCASE( MEMTEST( ptr1, 10 ) );
index 30e01331f085775bcb0cd8881695c6d5293ba4ad..e26ea863cfa9e9f702236538921281ea7c7ab688 100644 (file)
@@ -33,7 +33,7 @@ static inline void memswp( char * i, char * j, size_t size )
 #define PUSH( base, limit ) stackptr[0] = base; stackptr[1] = limit; stackptr += 2
 #define POP( base, limit ) stackptr -= 2; base = stackptr[0]; limit = stackptr[1]
 /* TODO: Stack usage is log2( nmemb ) (minus what T shaves off the worst case).
-         Worst-case nmemb is platform dependent and should probably be 
+         Worst-case nmemb is platform dependent and should probably be
          configured through _PDCLIB_config.h.
 */
 #define STACKSIZE 64
@@ -128,7 +128,9 @@ void qsort( void * base, size_t nmemb, size_t size, int (*compar)( const void *,
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
+
 #include <string.h>
 #include <limits.h>
 
index 1e8f3cd789b2542ba0e7ab78c969cb412ff325c7..779b3b2371e777c046d13474cd5e71a5f6151df5 100644 (file)
@@ -17,6 +17,7 @@ int rand( void )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
index d64d756b25931fe4ae12f25ed996771027949e98..cbc01d4bb74ee33ffd930a056119a69dc0cf7606 100644 (file)
@@ -44,6 +44,7 @@ void * realloc( void * ptr, size_t size )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
@@ -53,4 +54,3 @@ int main( void )
 }
 
 #endif
-
index 3478cb09df60a87ec460f1254d173b929b472083..39c37ecab04389fc94ec1f3dd78de1bd3a2b1443 100644 (file)
@@ -16,6 +16,7 @@ void srand( unsigned int seed )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
index ce75539e4268c54babf288976daa0316b4506189..d89a6485211f57c7698f251fce9df6179988afc0 100644 (file)
@@ -32,6 +32,7 @@ long int strtol( const char * s, char ** endptr, int base )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 #include <errno.h>
index de7119429885cde06c589e24849e396f0915d36f..24c3e8edad642d34e27dbe9408dbbc9d56be55fd 100644 (file)
@@ -32,6 +32,7 @@ long long int strtoll( const char * s, char ** endptr, int base )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 #include <errno.h>
index 0bcb7dd2b608f621dd254cf926616918036720ee..1a93477644d6db4e70d6394b8c983929ee81d8ee 100644 (file)
@@ -25,7 +25,9 @@ unsigned long int strtoul( const char * s, char ** endptr, int base )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
+
 #include <errno.h>
 
 int main( void )
index 17d283fd6964336403b5043af10a89fea0ccb151..e207110bddea8b962ac039f1c7271a53fcebb295 100644 (file)
@@ -25,7 +25,9 @@ unsigned long long int strtoull( const char * s, char ** endptr, int base )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
+
 #include <errno.h>
 
 int main( void )
index 9701b943142f79cbd84ac6276d33ceb5ddc781a5..29598a729a92628bf5213835f9da4235999a9c23 100644 (file)
@@ -25,6 +25,7 @@ void * memchr( const void * s, int c, size_t n )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
index 323c5862db071c0378b954fe775de69ab3ad6aab..3743f781d9b6d9341a17f782f550b0bff469c12f 100644 (file)
@@ -27,6 +27,7 @@ int memcmp( const void * s1, const void * s2, size_t n )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
@@ -38,4 +39,5 @@ int main( void )
     TESTCASE( memcmp( xxxxx, abcde, 1 ) > 0 );
     return 0;
 }
+
 #endif
index ded60b1901282c59f460a9c110737495e050d053..21ef10e45933491a2e79b3ceda12adbcb8a2241f 100644 (file)
@@ -22,6 +22,7 @@ void * memcpy( void * _PDCLIB_restrict s1, const void * _PDCLIB_restrict s2, siz
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
@@ -35,4 +36,5 @@ int main( void )
     TESTCASE( s[10] == 'x' );
     return TEST_RESULTS;
 }
+
 #endif
index f83a1abedec2b59ba7660b4d7addfb66082e7ff6..af8981358414436351221d091cbb50bd52943232 100644 (file)
@@ -34,6 +34,7 @@ void * memmove( void * s1, const void * s2, size_t n )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
@@ -47,4 +48,5 @@ int main( void )
     TESTCASE( s[4] == 'a' );
     return TEST_RESULTS;
 }
+
 #endif
index 4946ec487812e3bd681ea0fe91da4520ce7f8d64..522ad77d73ca24817dbca74052b5e660cfa9c7ee 100644 (file)
@@ -21,6 +21,7 @@ void * memset( void * s, int c, size_t n )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
@@ -35,4 +36,5 @@ int main( void )
     TESTCASE( s[1] == 'o' );
     return TEST_RESULTS;
 }
+
 #endif
index 50d66ee0891c681438d95f6fc8200235ef459968..18fd4090e4eef56f42653898bb2b695f187bc922 100644 (file)
@@ -22,6 +22,7 @@ char * strcat( char * _PDCLIB_restrict s1, const char * _PDCLIB_restrict s2 )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
@@ -41,4 +42,5 @@ int main( void )
     TESTCASE( s[6] == 'e' );
     return TEST_RESULTS;
 }
+
 #endif
index 8c6e8a42ffec9099a401ea11f79c5edb04d9dd80..621100e04828860d931194276520020469f3168c 100644 (file)
@@ -23,6 +23,7 @@ char * strchr( const char * s, int c )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
@@ -35,4 +36,5 @@ int main( void )
     TESTCASE( strchr( abccd, 'c' ) == &abccd[2] );
     return TEST_RESULTS;
 }
+
 #endif
index 483260cf3974d4c366fa270040a5afdcb5f08625..639fc10259c24a6bd3eec3d24b59ec0e4420c203 100644 (file)
@@ -21,6 +21,7 @@ int strcmp( const char * s1, const char * s2 )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
@@ -36,4 +37,5 @@ int main( void )
     TESTCASE( strcmp( abcde, cmpabcd_ ) < 0 );
     return TEST_RESULTS;
 }
+
 #endif
index 4b2529b82e9c8365008c6b6431136115183d075b..6b012b7a29a451a5542032d16979ecb652d79baf 100644 (file)
@@ -23,6 +23,7 @@ int strcoll( const char * s1, const char * s2 )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
@@ -36,4 +37,5 @@ int main( void )
     TESTCASE( strcmp( abcde, empty ) > 0 );
     return TEST_RESULTS;
 }
+
 #endif
index d66cbaba5edb230b5ae4d6346c7f47080db402fd..e0357c89c94861521ed622c4a0e6bbb3fc15f2c3 100644 (file)
@@ -18,6 +18,7 @@ char * strcpy( char * _PDCLIB_restrict s1, const char * _PDCLIB_restrict s2 )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
@@ -32,4 +33,5 @@ int main( void )
     TESTCASE( s[5] == '\0' );
     return TEST_RESULTS;
 }
+
 #endif
index baf8fc799a6a2dd3cba0e41fefbb8564c29acd55..84f8af15315a393eb28700ce9972040018f137c2 100644 (file)
@@ -30,6 +30,7 @@ size_t strcspn( const char * s1, const char * s2 )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
@@ -45,4 +46,5 @@ int main( void )
     TESTCASE( strcspn( abcde, "cba" ) == 0 );
     return TEST_RESULTS;
 }
+
 #endif
index 2b776405d085d9805a734192f239e95a05e4fc8e..59747f1d8491dc48b934dc398c2968d9f7f75500 100644 (file)
@@ -26,6 +26,7 @@ char * strerror( int errnum )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 #include <stdio.h>
@@ -36,4 +37,5 @@ int main( void )
     TESTCASE( strerror( ERANGE ) != strerror( EDOM ) );
     return TEST_RESULTS;
 }
+
 #endif
index 042582abbde91aa335e09529bbcbdd3be59da1a7..c1a620e7eaa0bedf2d8190bdf9021f183caf505f 100644 (file)
@@ -21,6 +21,7 @@ size_t strlen( const char * s )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
@@ -29,4 +30,5 @@ int main( void )
     TESTCASE( strlen( "" ) == 0 );
     return TEST_RESULTS;
 }
+
 #endif
index 18d8ed596e9fc0cd20b872f90f99200d2a68b6bb..ba20edc14b46ae32207e50ce3e7b3a44a8ea35c7 100644 (file)
@@ -29,6 +29,7 @@ char * strncat( char * _PDCLIB_restrict s1, const char * _PDCLIB_restrict s2, si
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
@@ -55,4 +56,5 @@ int main( void )
     TESTCASE( s[8] == '\0' );
     return TEST_RESULTS;
 }
+
 #endif
index 75b399d1c3298cc9f69181b48f59aab0521b2d90..1e9119dbd56ec0d70888a681a257452bad549e4d 100644 (file)
@@ -29,6 +29,7 @@ int strncmp( const char * s1, const char * s2, size_t n )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
@@ -49,4 +50,5 @@ int main( void )
     TESTCASE( strncmp( abcde, cmpabcd_, 10 ) < 0 );
     return TEST_RESULTS;
 }
+
 #endif
index 2c58d538fbb0be3fc463af51e82404d0d6cef1a0..da1397a93caaf2a7a1b6b3ebf5499f941f1f8236 100644 (file)
@@ -30,6 +30,7 @@ char * strncpy( char * _PDCLIB_restrict s1, const char * _PDCLIB_restrict s2, si
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
@@ -51,4 +52,5 @@ int main( void )
     TESTCASE( s[3] == 'd' );
     return TEST_RESULTS;
 }
+
 #endif
index 1615ce3ff9d75cddfab8c16ec5120274845681e2..e95f0c1776478033fe9ad400464925986fb92081 100644 (file)
@@ -30,6 +30,7 @@ char * strpbrk( const char * s1, const char * s2 )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
@@ -44,4 +45,5 @@ int main( void )
     TESTCASE( strpbrk( abcde, "cba" ) == &abcde[0] );
     return TEST_RESULTS;
 }
+
 #endif
index b8a83f0bd74fc04886cb46c8191da6c46990f28e..c2369fa4589269bd02864ed7a581b85cdbbfabbc 100644 (file)
@@ -25,6 +25,7 @@ char * strrchr( const char * s, int c )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
@@ -36,4 +37,5 @@ int main( void )
     TESTCASE( strrchr( abccd, 'c' ) == &abccd[3] );
     return TEST_RESULTS;
 }
+
 #endif
index 8869a846834607887a9c25bc50aef3f9baf2fc9c..7b55b08ea61a0308b9908c217418c2b81280de9a 100644 (file)
@@ -35,6 +35,7 @@ size_t strspn( const char * s1, const char * s2 )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
@@ -44,4 +45,5 @@ int main( void )
     TESTCASE( strspn( abcde, abcde ) == 5 );
     return TEST_RESULTS;
 }
+
 #endif
index 5c97a750c076400c90bf61520c1f26b9c24e880a..aee282f3a0d02c34239f19436c0df321e7aca8a2 100644 (file)
@@ -33,6 +33,7 @@ char * strstr( const char * s1, const char * s2 )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
@@ -46,4 +47,5 @@ int main( void )
     TESTCASE( strstr( s, "abcde" ) == &s[10] );
     return TEST_RESULTS;
 }
+
 #endif
index 3c427c549c9ea0b87e6851a7862f3c77a78b7e8d..69c2d683d7b1b0f871928011ac46d843565800c7 100644 (file)
@@ -73,6 +73,7 @@ char * strtok( char * _PDCLIB_restrict s1, const char * _PDCLIB_restrict s2 )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
@@ -102,4 +103,5 @@ int main( void )
     TESTCASE( strtok( NULL, "_" ) == NULL );
     return TEST_RESULTS;
 }
+
 #endif
index 9b6192275500c51aa650ef3a89476bddc1c03d4e..c16f1e0d0f3c839e03f9ecc5b618da974b6806be 100644 (file)
@@ -26,6 +26,7 @@ size_t strxfrm( char * _PDCLIB_restrict s1, const char * _PDCLIB_restrict s2, si
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
@@ -43,5 +44,5 @@ int main( void )
     TESTCASE( s[10] == '\0' );
     return TEST_RESULTS;
 }
-#endif
 
+#endif
index 27b66aad77b6a189ff672f4ec9d537783f85b3b8..168900a4545ca98dd773431e162fdf6b573dccbf 100644 (file)
@@ -64,7 +64,7 @@ int ispunct( int c );
 /* Returns true for every standard whitespace character (' ', '\f', '\n', '\r',
    '\t', '\v') in the "C" locale. In any other locale, also returns true for a
    locale-specific set of characters for which isalnum() is false.
-*/ 
+*/
 int isspace( int c );
 
 /* Returns true for uppercase letters in the "C" locale.
index 2ffed5373e1e640274d9c4e5b0d2dec9ec1427e0..e0db955f556cf4040faf40b26983787a40a15d1c 100644 (file)
@@ -15,4 +15,3 @@
 #define EDOM _PDCLIB_EDOM
 
 #endif
-
index ae369805b6f323861562b80545805c7ea9f497f3..5252937d2560bdca18db11aa08d3a774b1c68b76 100644 (file)
@@ -247,4 +247,3 @@ uintmax_t strtoumax( const char * _PDCLIB_restrict nptr, char * * _PDCLIB_restri
 /* TODO: wcstoimax(), wcstoumax() */
 
 #endif
-
index 3b0c481700ddd375f739fae35068a30a81df5807..98a023f5201d12715a6c8fc24f011465df88982d 100644 (file)
@@ -20,4 +20,3 @@
 #define xor_eq ^=
 
 #endif
-
index 378fec6b5d64c4704b2b77904d8d8ed009290601..e949b2f5b028fd7da924a4ce89398979c3e87078 100644 (file)
@@ -33,4 +33,3 @@
 #define ULONG_MAX  _PDCLIB_ULONG_MAX
 
 #endif
-
index 79e441e00ce115f01a04aa51a2418e003e70b190..6d46536f2d2414e7a7052b47308ea35cad9f6d02 100644 (file)
@@ -96,4 +96,3 @@ char * setlocale( int category, const char * locale );
 struct lconv * localeconv( void );
 
 #endif
-
index 47ca476d4ddc91b6e9adaeaac10ede16582d296f..90bc8484aab3a3b8c37b92da0cb3a496091d4b86 100644 (file)
@@ -1,4 +1,4 @@
-/* Variable arguments <stdarg.h> 
+/* Variable arguments <stdarg.h>
 
    This file is part of the Public Domain C Library (PDCLib).
    Permission is granted to use, modify, and / or redistribute at will.
@@ -17,4 +17,3 @@ typedef _PDCLIB_va_list va_list;
 #define va_start( ap, parmN ) _PDCLIB_va_start( ap, parmN )
 
 #endif
-
index 25dc513ead123f3f2ed1042d6ad5d068b3452424..8f6a1d0ff1d9ed04037c58a80f7f8e96ee7c955e 100644 (file)
@@ -13,4 +13,3 @@
 #define __bool_true_false_are_defined 1
 
 #endif
-
index 7113421d078451bc7101bd5df27eefb9702df711..970f1dd8949b216cc86acaf548451f34b4d80411 100644 (file)
@@ -26,4 +26,3 @@ typedef _PDCLIB_wchar_t   wchar_t;
 #define offsetof( type, member ) _PDCLIB_offsetof( type, member )
 
 #endif
-
index a1c3942dd1056761e8990479999c5f48fa9f69a5..5d387d91c675ad2e9e4532564b87b1bfd86d00a0 100644 (file)
@@ -205,4 +205,3 @@ typedef _PDCLIB_uintmax_t uintmax_t;
 #endif
 
 #endif
-
index af93c4cebaa105d96b9d8ea5012f6f9b9d21f1d2..3363eeed07deea0a4fafb15aec8a7587cdb71ad4 100644 (file)
@@ -54,7 +54,7 @@ extern FILE * stderr;
 int remove( const char * filename );
 
 /* Rename the given old file to the given new name.
-   Returns zero if successful, non-zero otherwise. 
+   Returns zero if successful, non-zero otherwise.
    This implementation does detect if the old filename corresponds to an open
    file, and fails the rename in this case.
    If there already is a file with the new filename, behaviour is defined by
index b75389786c5090c3fba645009424a74d2b8df8fa..97c85e0fabc9bb00adf8a325f3f95da0a71ed2c4 100644 (file)
@@ -143,7 +143,7 @@ void abort( void );
    reverse order of registration (last-in, first-out).
    Returns zero if registration is successfull, nonzero if it failed.
 */
-int atexit( void (*func)( void ) ); 
+int atexit( void (*func)( void ) );
 
 /* Normal process termination. Functions registered by atexit() (see above) are
    called, streams flushed, files closed and temporary files removed before the
index 534322b9627dfb21915f7dd144f3e4ca9d552447..cce59e7787453639d176dbbe6f86d903ad9f6582 100644 (file)
@@ -33,7 +33,7 @@ void * _PDCLIB_allocpages( int n );
 
 /* stdio.h */
 
-/* A system call that opens a file identified by name in a given mode. Return 
+/* A system call that opens a file identified by name in a given mode. Return
    a file descriptor uniquely identifying that file.
    (The mode is the return value of the _PDCLIB_filemode() function.)
 */
index e997b08f4646978f781dc504ddfa5d474b22ab2a..e449e2db53b6c9cae3ccb90eee17ee3a501912d5 100644 (file)
@@ -257,7 +257,7 @@ typedef unsigned _PDCLIB_intmax _PDCLIB_uintmax_t;
 */
 #define _PDCLIB_FREAD     8u
 #define _PDCLIB_FWRITE   16u
-#define _PDCLIB_FAPPEND  32u 
+#define _PDCLIB_FAPPEND  32u
 #define _PDCLIB_FRW      64u
 #define _PDCLIB_FBIN    128u
 
@@ -380,7 +380,7 @@ const char * _PDCLIB_scan( const char * spec, struct _PDCLIB_status_t * status )
 /* Parsing any fopen() style filemode string into a number of flags. */
 unsigned int _PDCLIB_filemode( const char * mode );
 
-/* Sanity checking and preparing of read buffer, should be called first thing 
+/* Sanity checking and preparing of read buffer, should be called first thing
    by any stdio read-data function.
    Returns 0 on success, EOF on error.
    On error, EOF / error flags and errno are set appropriately.
index 5cb83b5e0c0e7218de53843841cc622b8170a14f..07dc20ec4ae259c6ee8632411648014cb63d1c65 100644 (file)
@@ -19,4 +19,3 @@ order to experience anything but abysmal performance:
   platform of choice, it is also highly inefficient and should be replaced by
   inline assembly. Just make sure that your assembly keeps all the promises
   the C library makes.
-
index e9e900d3c89c8f3ed0b03953481296253e047ddc..ed019ae9f12b5f78faf4fbef959dbf41523f804b 100644 (file)
@@ -11,6 +11,7 @@
 #include <stdlib.h>
 
 #ifndef REGTEST
+
 #include "_PDCLIB_glue.h"
 
 extern void _exit( int status ) _PDCLIB_NORETURN;
@@ -23,6 +24,7 @@ void _PDCLIB_Exit( int status )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
index f3414bbb0bc8058925f0d67a8c107e0a894adbef..9de9314ea64cc733de4ec3c02dbb73167902e158 100644 (file)
@@ -58,6 +58,7 @@ void * _PDCLIB_allocpages( int const n )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
index 279fae8e2b1cb69b5c617b73560c5157dde2e002..8fc9b3474b9b06200fc0496f091a1863aadc2e1d 100644 (file)
@@ -11,6 +11,7 @@
 #include <stdio.h>
 
 #ifndef REGTEST
+
 #include "_PDCLIB_glue.h"
 
 extern int close( int fd );
@@ -23,6 +24,7 @@ int _PDCLIB_close( int fd )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
index e3cb9bec3f669305e92001daeada532328901854..0e1b0e39cec1ee678b1fc9b09f4ceddb44fc4be5 100644 (file)
@@ -11,6 +11,7 @@
 #include <stdio.h>
 
 #ifndef REGTEST
+
 #include "_PDCLIB_glue.h"
 
 #include </usr/include/errno.h>
@@ -65,6 +66,7 @@ int _PDCLIB_fillbuffer( struct _PDCLIB_file_t * stream )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
@@ -74,4 +76,3 @@ int main( void )
 }
 
 #endif
-
index 8d5f9212bf9bf539e5147870fe3d7fdd41ad59b3..3ed891f159987aba96086bcf67948c32db5c3d16 100644 (file)
@@ -12,6 +12,7 @@
 #include <string.h>
 
 #ifndef REGTEST
+
 #include "_PDCLIB_glue.h"
 
 #include </usr/include/errno.h>
@@ -95,8 +96,8 @@ int _PDCLIB_flushbuffer( struct _PDCLIB_file_t * stream )
 
 #endif
 
-
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
@@ -106,4 +107,3 @@ int main( void )
 }
 
 #endif
-
index 1e2c775ac436f3fb915b67523407ba51fede3c25..0f9d08cc25e92bdff52927f16f00b0be5745004f 100644 (file)
@@ -11,6 +11,7 @@
 #include <stdio.h>
 
 #ifndef REGTEST
+
 #include "_PDCLIB_glue.h"
 
 #include <sys/types.h>
@@ -95,6 +96,7 @@ int _PDCLIB_open( char const * const filename, unsigned int mode )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 #include <stdlib.h>
@@ -163,4 +165,3 @@ int main( void )
 }
 
 #endif
-
index 6ce45811b0dd7fdd97d4d440c42ef83c73d84ff0..f1fc38245814facd9d210eb2cfe0149d818cdf27 100644 (file)
@@ -7,6 +7,7 @@
 #include <stdio.h>
 
 #ifndef REGTEST
+
 #include "_PDCLIB_glue.h"
 
 #include </usr/include/errno.h>
index 3d62c59bf7ff954c1c01e613596cd0c1b268b8ed..cafcee8ddc2cfd64db234c335ca00e9754667321 100644 (file)
@@ -60,6 +60,7 @@ _PDCLIB_int64_t _PDCLIB_seek( struct _PDCLIB_file_t * stream, _PDCLIB_int64_t of
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
@@ -69,4 +70,3 @@ int main( void )
 }
 
 #endif
-
index d11718d0be5851636b8c5a61cfc9e3a4d27252fa..d7a0c84804344329d7188e28f10412ac4696ed0e 100644 (file)
@@ -302,7 +302,7 @@ static struct _PDCLIB_ctype_t _ctype[] = {
     { 0x00, 0xFF, 0xFF, 0xFF }
 };
 
-struct lconv _PDCLIB_lconv = { 
+struct lconv _PDCLIB_lconv = {
     /* _PDCLIB_ctype      */ _ctype + 1,
     /* _PDCLIB_errno_texts */
     {
@@ -340,11 +340,12 @@ struct lconv _PDCLIB_lconv = {
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
 {
-    /* Testing covered by several other testdrivers using stdin / stdout / 
+    /* Testing covered by several other testdrivers using stdin / stdout /
        stderr.
     */
     return TEST_RESULTS;
index 13a8b50b9fa28fa6dfa98ce157494ceae9895461..7071092d43bd3dc898019cefc3f790b43ea2c004 100644 (file)
@@ -68,6 +68,7 @@ int raise( int sig )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 #include <stdlib.h>
@@ -109,4 +110,5 @@ int main( void )
     TESTCASE( flag == 1 );
     return TEST_RESULTS;
 }
+
 #endif
index f8fce3c624d052ae8707d26fe096415da0deb7bb..e6775e7cf5fb05ccf7570fc3c7dad4cfab74e692 100644 (file)
@@ -63,6 +63,7 @@ void (*signal( int sig, void (*func)( int ) ) )( int )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
@@ -70,4 +71,5 @@ int main( void )
     /* Testing covered by raise.c */
     return TEST_RESULTS;
 }
+
 #endif
index a2279f17dee1cb2f18122fb67d59011ad080dfd9..aca3eaf98f31e6d562ad4bf1fa699bc11981cc1e 100644 (file)
@@ -63,6 +63,7 @@ int remove( const char * pathname )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
@@ -72,4 +73,3 @@ int main( void )
 }
 
 #endif
-
index 432e3b97fe0a4a2e512d85cb51645a573afb1d4e..cb942ff345114d58680939725c8777cacf2d230b 100644 (file)
@@ -8,12 +8,12 @@
 
 #ifndef REGTEST
 
+#include "_PDCLIB_glue.h"
+
 #include <inttypes.h>
 #include <stdlib.h>
 #include <string.h>
 
-#include "_PDCLIB_glue.h"
-
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
@@ -47,7 +47,7 @@ struct _PDCLIB_file_t * tmpfile( void )
            generate the filename candidate, which is *also* platform-dependent.
         */
         unsigned int random;
-        fscanf( randomsource, "%u", &random ); 
+        fscanf( randomsource, "%u", &random );
         sprintf( filename, "/tmp/%u.tmp", random );
         /* Check if file of this name exists. Note that fopen() is a very weak
            check, which does not take e.g. access permissions into account
@@ -86,7 +86,9 @@ struct _PDCLIB_file_t * tmpfile( void )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
+
 #include <string.h>
 
 int main( void )
@@ -110,4 +112,3 @@ int main( void )
 }
 
 #endif
-
index 30ed1dec51bcb96e05f7646300cfafbcb86ebcfb..72bbcd20bf8cfb112dfabfe64746457e23ca1f24 100644 (file)
@@ -32,6 +32,7 @@ char * getenv( const char * name )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 int main( void )
index 6f4aded95bf58777c933aa4f4dc30bf02dd490f7..8b5d4d7023270471dec3eddb1d5728369ef58ed3 100644 (file)
@@ -32,6 +32,7 @@ int system( const char * string )
 }
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 #define SHELLCOMMAND "echo 'SUCCESS testing system()'"
index 9d59d96dcfa1dcf5f89e58a85275490ca26b8586..bd57959a1bfaff4504accaa103cd74550ec67576 100644 (file)
@@ -82,4 +82,3 @@ void (*signal( int sig, void (*func)( int ) ) )( int );
 int raise( int sig );
 
 #endif
-
index 0717adb30cb28238f170faa26dfc717ade86acd0..e9cde3c01cf3d93cc45a77f901be659ada81d64c 100644 (file)
@@ -145,7 +145,7 @@ struct _PDCLIB_lldiv_t
 /* Large enough an integer to hold all character codes of the largest supported
    locale.
 */
-#define _PDCLIB_wchar unsigned short 
+#define _PDCLIB_wchar unsigned short
 #define _PDCLIB_WCHAR USHRT
 
 /* (Signed) integer type capable of taking the (cast) value of a void *, and
index 7878ddbf360aa3ce66e140034b29235589d4bf93..62f5fb5f31ab49d277979a00fb7ba20aef5ddb4a 100644 (file)
@@ -42,4 +42,3 @@ static int TEST_RESULTS = 0;
 #if defined( _PDCLIB_FILEIO ) || defined( _PDCLIB_STRINGIO )
 #include "_PDCLIB_iotest.h"
 #endif
-
index e024784d3c42d136689bdf9206f870e17a5923d1..461b9393c22662d079b352c4fb7db439dd51c360 100644 (file)
@@ -1,4 +1,4 @@
-    {
+{
     PRINTF_TEST( 4,   "-128", "%hhd", CHAR_MIN );
     PRINTF_TEST( 3,    "127", "%hhd", CHAR_MAX );
     PRINTF_TEST( 1,      "0", "%hhd", 0 );
         TESTCASE( val2 == 9 );
     }
 #endif
-    }
+}