Mercurial > hg > octave-lyh
changeset 2189:d01936305d99
[project @ 1996-05-14 03:31:57 by jwe]
author | jwe |
---|---|
date | Tue, 14 May 1996 03:35:29 +0000 |
parents | 64dbd9cb5e5a |
children | c0ec4630bd31 |
files | src/file-io.cc src/file-io.h src/help.cc src/help.h |
diffstat | 4 files changed, 50 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/file-io.cc +++ b/src/file-io.cc @@ -1151,6 +1151,28 @@ return retval; } +void +symbols_of_file_io (void) +{ + DEFCONST (SEEK_SET, 0.0, 0, 0, + "used with fseek to position file relative to the beginning"); + + DEFCONST (SEEK_CUR, 1.0, 0, 0, + "used with fseek to position file relative to the current position"); + + DEFCONST (SEEK_END, 2.0, 0, 0, + "used with fseek to position file relative to the end"); + + DEFCONSTX ("stdin", SBV_stdin, 0.0, 0, 0, + "file number of the standard input stream"); + + DEFCONSTX ("stdout", SBV_stdout, 1.0, 0, 0, + "file number of the standard output stream"); + + DEFCONSTX ("stderr", SBV_stderr, 2.0, 0, 0, + "file number of the standard error stream"); +} + /* ;;; Local Variables: *** ;;; mode: C++ ***
--- a/src/file-io.h +++ b/src/file-io.h @@ -29,6 +29,8 @@ extern void close_files (void); +extern void symbols_of_file_io (void); + #endif /*
--- a/src/help.cc +++ b/src/help.cc @@ -59,6 +59,10 @@ #include "utils.h" #include "variables.h" +// If TRUE, don't print additional help message in help and usage +// functions. +static bool Vsuppress_verbose_help_message; + static help_list operators[] = { { "!", @@ -320,7 +324,7 @@ additional_help_message (ostream& os) { #ifdef USE_GNU_INFO - if (! user_pref.suppress_verbose_help_message) + if (! Vsuppress_verbose_help_message) os << VERBOSE_HELP_MESSAGE; #endif } @@ -893,6 +897,25 @@ return retval; } +static int +suppress_verbose_help_message (void) +{ + Vsuppress_verbose_help_message + = check_preference ("suppress_verbose_help_message"); + + return 0; +} + +void +symbols_of_help (void) +{ +#ifdef USE_GNU_INFO + DEFVAR (suppress_verbose_help_message, 0.0, 0, suppress_verbose_help_message, + "suppress printing of message pointing to additional help in the\n\ +help and usage functions"); +#endif +} + /* ;;; Local Variables: *** ;;; mode: C++ ***