X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2F_PDCLIB%2Fprint.c;h=768b4a60c060b8a6a1f1c7de959518c79caa2296;hp=076cbeddf1bb1040b9378da4d387646427e03701;hb=2040228f27d623585d339dec175c4e779ca9edb5;hpb=3ffa88d3e16e7564ff81bf3650b5afa113caac97 diff --git a/functions/_PDCLIB/print.c b/functions/_PDCLIB/print.c index 076cbed..768b4a6 100644 --- a/functions/_PDCLIB/print.c +++ b/functions/_PDCLIB/print.c @@ -10,6 +10,8 @@ #include #include +#ifndef REGTEST + /* Using an integer's bits as flags for both the conversion flags and length modifiers. */ @@ -513,12 +515,16 @@ const char * _PDCLIB_print( const char * spec, struct _PDCLIB_status_t * status return ++spec; } +#endif + #ifdef TEST #define _PDCLIB_FILEID "_PDCLIB/print.c" #define _PDCLIB_STRINGIO #include "_PDCLIB_test.h" +#ifndef REGTEST + static int testprintf( char * buffer, const char * format, ... ) { /* Members: base, flags, n, i, current, s, width, prec, stream, arg */ @@ -542,13 +548,16 @@ static int testprintf( char * buffer, const char * format, ... ) va_end( status.arg ); return status.i; } +#endif #define TEST_CONVERSION_ONLY int main( void ) { +#ifndef REGTEST char target[100]; #include "printf_testcases.h" +#endif return TEST_RESULTS; }