projects
/
fw
/
pdclib
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reworked scanf() testing. General cleanups.
[fw/pdclib]
/
functions
/
stdio
/
vfprintf.c
diff --git
a/functions/stdio/vfprintf.c
b/functions/stdio/vfprintf.c
index 44c86358783e6b13b3ee13d6ef39e8c71c8add0f..cc6e7a6e40388f9c65a187c3df3bea8e7e3dff8c 100644
(file)
--- a/
functions/stdio/vfprintf.c
+++ b/
functions/stdio/vfprintf.c
@@
-50,10
+50,8
@@
int vfprintf( struct _PDCLIB_file_t * _PDCLIB_restrict stream, const char * _PDC
#ifdef TEST
#define _PDCLIB_FILEID "stdio/vfprintf.c"
#ifdef TEST
#define _PDCLIB_FILEID "stdio/vfprintf.c"
-#define FPRINTF_FUNCTION
-#include <stdlib.h>
-#include <limits.h>
-#include <string.h>
+#define _PDCLIB_FILEIO
+
#include <_PDCLIB_test.h>
static int testprintf( FILE * stream, const char * format, ... )
#include <_PDCLIB_test.h>
static int testprintf( FILE * stream, const char * format, ... )
@@
-70,7
+68,7
@@
int main( void )
{
FILE * target;
TESTCASE( ( target = tmpfile() ) != NULL );
{
FILE * target;
TESTCASE( ( target = tmpfile() ) != NULL );
-#include "printf_testcases.
incl
"
+#include "printf_testcases.
h
"
TESTCASE( fclose( target ) == 0 );
return TEST_RESULTS;
}
TESTCASE( fclose( target ) == 0 );
return TEST_RESULTS;
}