Mercurial > hg > octave-avbm
changeset 2692:25fbbe6074e9
[project @ 1997-02-18 09:49:11 by jwe]
author | jwe |
---|---|
date | Tue, 18 Feb 1997 09:49:12 +0000 |
parents | 3dda19091c08 |
children | f4d0604cbcc4 |
files | src/ChangeLog src/help.cc src/toplev.cc |
diffstat | 3 files changed, 7 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -2,6 +2,10 @@ * Version 2.0.3 released. + * toplev.cc (system): Shift then mask exit status. + + * help.cc (try_info): Shift first, then mask exit status. + * toplev.cc (octave_config_info): Handle option argument. Fri Feb 14 16:23:30 1997 John W. Eaton <jwe@bevo.che.wisc.edu>
--- a/src/help.cc +++ b/src/help.cc @@ -560,7 +560,7 @@ octave_set_interrupt_handler (old_interrupt_handler); if ((status & 0xff) == 0) - status = (signed char) ((status & 0xff00) >> 8); + status = (status >> 8) & 0xff; else status = 127;
--- a/src/toplev.cc +++ b/src/toplev.cc @@ -681,7 +681,7 @@ // the command. Otherwise, return 127 as a failure code. if ((status & 0xff) == 0) - status = (status & 0xff00) >> 8; + status = (status >> 8) & 0xff; output_buf << ends; @@ -788,7 +788,7 @@ // failure code. if ((status & 0xff) == 0) - status = (status & 0xff00) >> 8; + status = (status >> 8) & 0xff; retval = (double) status; }