This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Wow, just hit RCS bug (attn: Dr Volker Zell)


Had a quick look at some old notes. If someone is looking for a
possible code fix in RCS 5.8: try adding an fflush of the "stream" of
the "fro" struct to the macro "fro_bob" in b-fro.h. Something like
this perhaps:

    #define fro_bob(f)  do { if (STDIO_P(f)) fflush((f)->stream); fro_move (f, 0) } while (0)

Idea: whenever the file is reset to the beginning, the stream is
"cleaned". See also

    https://www.gnu.org/software/libc/manual/html_node/Linked-Channels.html
    https://www.gnu.org/software/libc/manual/html_node/Cleaning-Streams.html

The code in ci.c uses the fro_bob macro to reset the file to the
start.

Untested, don't have time for testing myself now.

Regards,

Peter Wagemans


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]