projects
/
fw
/
pdclib
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Porting current working set from CVS.
[fw/pdclib]
/
functions
/
_PDCLIB
/
stdarg.c
diff --git
a/functions/_PDCLIB/stdarg.c
b/functions/_PDCLIB/stdarg.c
index defd5fef31d8f7d9129c4cf6b2aac5d3ecc6c724..4900cc58de8d607dd7f60af483af575f28677e9d 100644
(file)
--- a/
functions/_PDCLIB/stdarg.c
+++ b/
functions/_PDCLIB/stdarg.c
@@
-8,14
+8,11
@@
Permission is granted to use, modify, and / or redistribute at will.
*/
Permission is granted to use, modify, and / or redistribute at will.
*/
-#ifdef TEST
-
-#include <_PDCLIB_test.h>
#include <stdarg.h>
#include <limits.h>
#include <float.h>
#include <stdarg.h>
#include <limits.h>
#include <float.h>
-unsigned int rc = 0;
+#include <_PDCLIB_test.h>
typedef int (*intfunc_t)( void );
typedef int (*intfunc_t)( void );
@@
-98,12
+95,12
@@
static int test( enum tag_t s, ... )
}
}
}
}
-
int dummy(
)
+
static int dummy( void
)
{
return INT_MAX;
}
{
return INT_MAX;
}
-int main()
+int main(
void
)
{
int x = INT_MAX;
long double d = LDBL_MAX;
{
int x = INT_MAX;
long double d = LDBL_MAX;
@@
-114,5
+111,3
@@
int main()
test( TAG_INTPTR, &x, TAG_LDBLPTR, &d, TAG_FUNCPTR, dummy, TAG_END );
return TEST_RESULTS;
}
test( TAG_INTPTR, &x, TAG_LDBLPTR, &d, TAG_FUNCPTR, dummy, TAG_END );
return TEST_RESULTS;
}
-
-#endif