Mercurial > hg > octave-nkf
diff src/pager.cc @ 529:7ea224e713cd
[project @ 1994-07-20 18:54:27 by jwe]
author | jwe |
---|---|
date | Wed, 20 Jul 1994 19:19:08 +0000 |
parents | a99f28f5e351 |
children | bc813f5eb025 |
line wrap: on
line diff
--- a/src/pager.cc +++ b/src/pager.cc @@ -1,7 +1,7 @@ // pager.cc -*- C++ -*- /* -Copyright (C) 1992, 1993 John W. Eaton +Copyright (C) 1992, 1993, 1994 John W. Eaton This file is part of Octave. @@ -36,13 +36,13 @@ #include "pager.h" // Where we stash output headed for the screen. -static ostrstream *pager_buf = (ostrstream *) NULL; +static ostrstream *pager_buf = 0; static int line_count (char *s) { int count = 0; - if (s != (char *) NULL) + if (s) { char c; while ((c = *s++) != '\0') @@ -89,7 +89,7 @@ if (interactive && user_pref.page_screen_output - && user_pref.pager_binary != (char *) NULL) + && user_pref.pager_binary) { *pager_buf << message; delete [] message; @@ -109,7 +109,7 @@ char *message = pager_buf->str (); - if (message == (char *) NULL || *message == '\0') + if (! message || ! *message) { delete [] message; initialize_pager (); @@ -121,7 +121,7 @@ if (nlines > terminal_rows () - 2) { char *pgr = user_pref.pager_binary; - if (pgr != (char *) NULL) + if (pgr) { oprocstream pager_stream (pgr); if (pager_stream)