X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;ds=sidebyside;f=functions%2F_PDCLIB%2Fstdarg.c;h=4900cc58de8d607dd7f60af483af575f28677e9d;hb=12e17136786afb1775c9dc946cbe41f5e230c24a;hp=defd5fef31d8f7d9129c4cf6b2aac5d3ecc6c724;hpb=9489b93733c00be5a94e2ee5b349457c78184a1a;p=pdclib.old 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