X-Git-Url: https://pd.if.org/git/?p=pdclib.old;a=blobdiff_plain;f=functions%2F_PDCLIB%2Fatomax.c;h=58a8e58e438c207f44870656beef9883f6e9b70c;hp=45095e77256767070b35008dcc2119413b161a22;hb=10f020f1a39804bbef8cd1cf35ef7c9a8e75c7d6;hpb=f7a440b9c7bb0c686dc2368c4ff53b20bf6371f8 diff --git a/functions/_PDCLIB/atomax.c b/functions/_PDCLIB/atomax.c index 45095e7..58a8e58 100644 --- a/functions/_PDCLIB/atomax.c +++ b/functions/_PDCLIB/atomax.c @@ -6,6 +6,7 @@ Permission is granted to use, modify, and / or redistribute at will. */ +#ifndef REGTEST #include <_PDCLIB_int.h> #include #include @@ -26,16 +27,19 @@ _PDCLIB_intmax_t _PDCLIB_atomax( const char * s ) } return ( sign == '+' ) ? rc : -rc; } +#endif #ifdef TEST #include <_PDCLIB_test.h> int main( void ) { +#ifndef REGTEST /* basic functionality */ TESTCASE( _PDCLIB_atomax( "123" ) == 123 ); /* testing skipping of leading whitespace and trailing garbage */ TESTCASE( _PDCLIB_atomax( " \n\v\t\f123xyz" ) == 123 ); +#endif return TEST_RESULTS; }