X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/ed759f583c7c5b2487ee5317d3ad4bc791a1d249..3e793ecdc83c0df54ce3096880eb8fdc7a36c4e0:/sbr/discard.c?ds=sidebyside diff --git a/sbr/discard.c b/sbr/discard.c index dbe309d7..83b0bfbc 100644 --- a/sbr/discard.c +++ b/sbr/discard.c @@ -11,13 +11,6 @@ #include -#ifdef SCO_5_STDIO -# define _ptr __ptr -# define _cnt __cnt -# define _base __base -# define _filbuf(fp) ((fp)->__cnt = 0, __filbuf(fp)) -#endif - void discard (FILE *io) @@ -27,15 +20,7 @@ discard (FILE *io) tcflush (fileno(io), TCOFLUSH); -#if defined(_FSTDIO) || defined(__DragonFly__) - fpurge (io); -#else -# ifdef LINUX_STDIO - io->_IO_write_ptr = io->_IO_write_base; -# else - if ((io->_ptr = io->_base)) - io->_cnt = 0; -# endif -#endif + /* There used to be an fpurge() here on some platforms, stdio + hackery on others. But it didn't seem necessary. */ }