]> pd.if.org Git - pdclib/blobdiff - functions/_PDCLIB/stdarg.c
Porting current working set from CVS.
[pdclib] / functions / _PDCLIB / stdarg.c
index defd5fef31d8f7d9129c4cf6b2aac5d3ecc6c724..4900cc58de8d607dd7f60af483af575f28677e9d 100644 (file)
@@ -8,14 +8,11 @@
    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>
 
-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