]> pd.if.org Git - pdclib/blobdiff - functions/_PDCLIB/scan.c
No exceptions to regtestdrivers anymore.
[pdclib] / functions / _PDCLIB / scan.c
index 5d9d675601cc1b128dd3b6f8327cf07edc21ab49..7d11a9c27e1204155cf9358dcb9bed473e3994bf 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,6 +594,7 @@ const char * _PDCLIB_scan( const char * spec, struct _PDCLIB_status_t * status )
     return NULL;
 }
 
+#endif
 
 #ifdef TEST
 #define _PDCLIB_FILEID "_PDCLIB/scan.c"
@@ -599,6 +602,7 @@ const char * _PDCLIB_scan( const char * spec, struct _PDCLIB_status_t * status )
 
 #include "_PDCLIB_test.h"
 
+#ifndef REGTEST
 static int testscanf( char const * s, char const * format, ... )
 {
     struct _PDCLIB_status_t status;
@@ -615,13 +619,16 @@ static int testscanf( char const * s, char const * format, ... )
     va_end( status.arg );
     return status.n;
 }
+#endif
 
 #define TEST_CONVERSION_ONLY
 
 int main( void )
 {
+#ifndef REGTEST
     char source[100];
 #include "scanf_testcases.h"
+#endif
     return TEST_RESULTS;
 }