X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2F_PDCLIB%2Fscan.c;h=7d11a9c27e1204155cf9358dcb9bed473e3994bf;hp=5d9d675601cc1b128dd3b6f8327cf07edc21ab49;hb=2040228f27d623585d339dec175c4e779ca9edb5;hpb=3ffa88d3e16e7564ff81bf3650b5afa113caac97 diff --git a/functions/_PDCLIB/scan.c b/functions/_PDCLIB/scan.c index 5d9d675..7d11a9c 100644 --- a/functions/_PDCLIB/scan.c +++ b/functions/_PDCLIB/scan.c @@ -14,6 +14,8 @@ #include #include +#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; }