X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2F_PDCLIB%2Fstdarg.c;h=e187c76e8dda8360fb02c9cd7ecf5e61243623e8;hb=d9dcf16664c81809258992e1653ecb68c8079974;hp=defd5fef31d8f7d9129c4cf6b2aac5d3ecc6c724;hpb=48343738db657a317d2d217f3e4ed5b6c37bd621;p=pdclib.old diff --git a/functions/_PDCLIB/stdarg.c b/functions/_PDCLIB/stdarg.c index defd5fe..e187c76 100644 --- a/functions/_PDCLIB/stdarg.c +++ b/functions/_PDCLIB/stdarg.c @@ -1,21 +1,16 @@ /* $Id$ */ -/* Release $Name$ */ - /* stdarg This file is part of the Public Domain C Library (PDCLib). 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 +93,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 +109,3 @@ int main() test( TAG_INTPTR, &x, TAG_LDBLPTR, &d, TAG_FUNCPTR, dummy, TAG_END ); return TEST_RESULTS; } - -#endif