Implement journaling. Bug #17240.
authorBen Pfaff <blp@gnu.org>
Fri, 24 Aug 2007 05:00:50 +0000 (05:00 +0000)
committerBen Pfaff <blp@gnu.org>
Fri, 24 Aug 2007 05:00:50 +0000 (05:00 +0000)
commitfdcc4b6875ccdbf7bd01bc401e87afbeb71c2bfd
treeb6bbac4dd90c54bd20597ae701d31c0e40c034d8
parent68b73d179454af3151156c62c2e27804019900d2
Implement journaling.  Bug #17240.

* msg-ui.c (handle_msg): Send message to write_journal function
as well as msg_file.
(dump_message): Change interface so that it takes a function
pointer instead of a FILE.
(write_stream): New function.
(write_journal): New function.

* read-line.c (welcome): Call journal_enable, so that the journal
is enabled by default.

* automake.mk (output_sources): Add journal.c, journal.h.

* journal.c: New file.

* journal.h: New file.
12 files changed:
doc/utilities.texi
src/language/lexer/ChangeLog
src/language/lexer/lexer.c
src/language/utilities/ChangeLog
src/language/utilities/set.q
src/output/ChangeLog
src/output/automake.mk
src/output/journal.c [new file with mode: 0644]
src/output/journal.h [new file with mode: 0644]
src/ui/terminal/ChangeLog
src/ui/terminal/msg-ui.c
src/ui/terminal/read-line.c