X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2F_PDCLIB%2Fprepwrite.c;h=dcdc970be8da45fe383e585c7c2fdff0f42dddee;hb=d865c4403fc91d1f1ac95ba76febcee9f429bb97;hp=148e1c144c0bcec02e88220e136210ecc73f02cb;hpb=ce0e5d8cd76b50f239fb8e95170502b146247b35;p=pdclib diff --git a/functions/_PDCLIB/prepwrite.c b/functions/_PDCLIB/prepwrite.c index 148e1c1..dcdc970 100644 --- a/functions/_PDCLIB/prepwrite.c +++ b/functions/_PDCLIB/prepwrite.c @@ -1,5 +1,3 @@ -/* $Id$ */ - /* _PDCLIB_prepwrite( struct _PDCLIB_file_t * ) This file is part of the Public Domain C Library (PDCLib). @@ -8,6 +6,8 @@ #include +#ifndef REGTEST + int _PDCLIB_prepwrite( struct _PDCLIB_file_t * stream ) { if ( ( stream->bufidx < stream->bufend ) || ( stream->ungetidx > 0 ) || @@ -26,8 +26,11 @@ int _PDCLIB_prepwrite( struct _PDCLIB_file_t * stream ) return 0; } +#endif + #ifdef TEST -#include <_PDCLIB_test.h> + +#include "_PDCLIB_test.h" int main( void ) { @@ -36,4 +39,3 @@ int main( void ) } #endif -