X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2F_PDCLIB%2Fscan.c;h=ccd3cdb9a01cb6003531780406a75e85e80b508d;hb=d865c4403fc91d1f1ac95ba76febcee9f429bb97;hp=5d9d675601cc1b128dd3b6f8327cf07edc21ab49;hpb=d6f1494a4f38a212b29a13ee713885058dcf0fe7;p=pdclib diff --git a/functions/_PDCLIB/scan.c b/functions/_PDCLIB/scan.c index 5d9d675..ccd3cdb 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,8 @@ 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; @@ -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; }