X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2F_PDCLIB%2Fstdarg.c;h=4900cc58de8d607dd7f60af483af575f28677e9d;hp=defd5fef31d8f7d9129c4cf6b2aac5d3ecc6c724;hb=d02f38605b53cdff5460cc6b9e1b2a80c3a2ba4c;hpb=3f6094115e79a45413f08361b68b71eb08da306e diff --git a/functions/_PDCLIB/stdarg.c b/functions/_PDCLIB/stdarg.c index defd5fe..4900cc5 100644 --- 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. */ -#ifdef TEST - -#include <_PDCLIB_test.h> #include #include #include -unsigned int rc = 0; +#include <_PDCLIB_test.h> 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; } -int main() +int main( void ) { 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; } - -#endif