]> pd.if.org Git - pdclib/blobdiff - functions/_PDCLIB/scan.c
Whitespace cleanups.
[pdclib] / functions / _PDCLIB / scan.c
index 8d4d7e0b98b3de5db39ff07fd71c83cadefb68cd..ccd3cdb9a01cb6003531780406a75e85e80b508d 100644 (file)
@@ -14,6 +14,8 @@
 #include <stddef.h>
 #include <limits.h>
 
+#ifndef REGTEST
+
 /* Using an integer's bits as flags for both the conversion flags and length
    modifiers.
 */
@@ -592,12 +594,15 @@ const char * _PDCLIB_scan( const char * spec, struct _PDCLIB_status_t * status )
     return NULL;
 }
 
+#endif
 
 #ifdef TEST
 #define _PDCLIB_FILEID "_PDCLIB/scan.c"
 #define _PDCLIB_STRINGIO
 
-#include <_PDCLIB_test.h>
+#include "_PDCLIB_test.h"
+
+#ifndef REGTEST
 
 static int testscanf( char const * s, char const * format, ... )
 {
@@ -616,12 +621,16 @@ static int testscanf( char const * s, char const * format, ... )
     return status.n;
 }
 
+#endif
+
 #define TEST_CONVERSION_ONLY
 
 int main( void )
 {
+#ifndef REGTEST
     char source[100];
 #include "scanf_testcases.h"
+#endif
     return TEST_RESULTS;
 }