]> pd.if.org Git - pdclib/commitdiff
REGTEST wrapping.
authorMartin Baute <solar@rootdirectory.de>
Fri, 25 Mar 2016 08:27:10 +0000 (09:27 +0100)
committerMartin Baute <solar@rootdirectory.de>
Fri, 25 Mar 2016 08:27:10 +0000 (09:27 +0100)
functions/_PDCLIB/digits.c
functions/_PDCLIB/errno.c
functions/_PDCLIB/stdarg.c [changed mode: 0644->0755]

index d921c2dd704d3e4ef763a9fdb9c64b97f1808764..4837d461323d02fbea4fcd03c6f4b405f3bdb5ef 100644 (file)
@@ -4,12 +4,16 @@
    Permission is granted to use, modify, and / or redistribute at will.
 */
 
+#ifndef REGTEST
+
 #include "_PDCLIB_int.h"
 
-char _PDCLIB_digits[] = "0123456789abcdefghijklmnopqrstuvwxyz";
+const char _PDCLIB_digits[] = "0123456789abcdefghijklmnopqrstuvwxyz";
 
 /* For _PDCLIB/print.c only; obsolete with ctype.h */
-char _PDCLIB_Xdigits[] = "0123456789ABCDEF";
+const char _PDCLIB_Xdigits[] = "0123456789ABCDEF";
+
+#endif
 
 #ifdef TEST
 
@@ -19,8 +23,10 @@ char _PDCLIB_Xdigits[] = "0123456789ABCDEF";
 
 int main( void )
 {
+#ifndef REGTEST
     TESTCASE( strcmp( _PDCLIB_digits, "0123456789abcdefghijklmnopqrstuvwxyz" ) == 0 );
     TESTCASE( strcmp( _PDCLIB_Xdigits, "0123456789ABCDEF" ) == 0 );
+#endif
     return TEST_RESULTS;
 }
 
index 9f84d339c0a68b12d893fd3a99da66424362341a..6fc1d66466d91707265d1ebf7b7b270d77aa9664 100644 (file)
@@ -4,10 +4,10 @@
    Permission is granted to use, modify, and / or redistribute at will.
 */
 
-#include "_PDCLIB_int.h"
-
 #ifndef REGTEST
 
+#include "_PDCLIB_int.h"
+
 int _PDCLIB_errno = 0;
 
 int * _PDCLIB_errno_func()
old mode 100644 (file)
new mode 100755 (executable)
index 61def68..7ad1087
@@ -8,6 +8,8 @@
 #include <limits.h>
 #include <float.h>
 
+#ifdef TEST
+
 #include "_PDCLIB_test.h"
 
 typedef int (*intfunc_t)( void );
@@ -109,3 +111,5 @@ int main( void )
     test( TAG_INTPTR, &x, TAG_LDBLPTR, &d, TAG_FUNCPTR, dummy, TAG_END );
     return TEST_RESULTS;
 }
+
+#endif