Mercurial > hg > octave-lojdl
changeset 988:ae42fa47efb8
[project @ 1994-12-15 03:55:38 by jwe]
author | jwe |
---|---|
date | Thu, 15 Dec 1994 03:59:06 +0000 |
parents | 0c95f3b2d3ec |
children | afb9c5c14ed3 |
files | octMakefile.in src/pager.cc |
diffstat | 2 files changed, 7 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/octMakefile.in +++ b/octMakefile.in @@ -114,7 +114,7 @@ install: $(top_srcdir)/mkinstalldirs $(DIRS_TO_MAKE) - install -m 755 octave-bug $(bindir)/octave-bug + $(INSTALL) octave-bug $(bindir)/octave-bug for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $@; cd ..; done .PHONY: install
--- a/src/pager.cc +++ b/src/pager.cc @@ -119,14 +119,16 @@ void flush_output_to_pager (void) { - *pager_buf << ends; + // Extract message from buffer, then delete the buffer so that any + // new messages get sent separately. + *pager_buf << ends; char *message = pager_buf->str (); + initialize_pager (); if (! message || ! *message) { delete [] message; - initialize_pager (); return; } @@ -143,19 +145,16 @@ if (pager_stream) { pager_stream << message; + delete [] message; pager_stream.flush (); - - delete [] message; - initialize_pager (); return; } } } cout << message; + delete [] message; cout.flush (); - delete [] message; - initialize_pager (); } static void