projects
/
fw
/
pdclib
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some cleanups and corrected typos.
[fw/pdclib]
/
functions
/
stdio
/
vprintf.c
diff --git
a/functions/stdio/vprintf.c
b/functions/stdio/vprintf.c
index a02c625670582f208e5d6b1a2092818bf4da06e5..4cb5af39afeaa89e0da5460065bd67849178c864 100644
(file)
--- a/
functions/stdio/vprintf.c
+++ b/
functions/stdio/vprintf.c
@@
-19,11
+19,13
@@
int vprintf( const char * _PDCLIB_restrict format, _PDCLIB_va_list arg )
#endif
#ifdef TEST
#endif
#ifdef TEST
+#define _PDCLIB_FILEID "stdio/vprintf.c"
+#define FPRINTF_FUNCTION
#include <limits.h>
#include <string.h>
#include <_PDCLIB_test.h>
#include <limits.h>
#include <string.h>
#include <_PDCLIB_test.h>
-static int testprintf( FILE * stream,
size_t n,
const char * format, ... )
+static int testprintf( FILE * stream, const char * format, ... )
{
int i;
va_list arg;
{
int i;
va_list arg;
@@
-33,15
+35,12
@@
static int testprintf( FILE * stream, size_t n, const char * format, ... )
return i;
}
return i;
}
-#define TESTCASE_SPRINTF( x )
-
int main( void )
{
int main( void )
{
- FILE *
buffer
;
- TESTCASE( (
buffer = freopen( testfile, "wb
", stdout ) ) != NULL );
+ FILE *
target
;
+ TESTCASE( (
target = freopen( testfile, "wb+
", stdout ) ) != NULL );
#include "printf_testcases.incl"
#include "printf_testcases.incl"
- TESTCASE( fclose( buffer ) == 0 );
-#include "fprintf_reftest.incl"
+ TESTCASE( fclose( target ) == 0 );
TESTCASE( remove( testfile ) == 0 );
return TEST_RESULTS;
}
TESTCASE( remove( testfile ) == 0 );
return TEST_RESULTS;
}