Mercurial > hg > octave-lojdl
changeset 1116:0e2974c1cc37
[project @ 1995-02-15 21:16:26 by jwe]
author | jwe |
---|---|
date | Wed, 15 Feb 1995 21:19:47 +0000 |
parents | ce9b0bb7916d |
children | c35ab9f94604 |
files | src/user-prefs.cc src/user-prefs.h src/variables.cc |
diffstat | 3 files changed, 22 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/user-prefs.cc +++ b/src/user-prefs.cc @@ -64,6 +64,7 @@ user_pref.save_precision = 0; user_pref.silent_functions = 0; user_pref.split_long_rows = 0; + user_pref.suppress_verbose_help_message = 0; user_pref.treat_neg_dim_as_zero = 0; user_pref.warn_assign_as_truth_value = 0; user_pref.warn_comma_in_global_decl = 0; @@ -363,6 +364,19 @@ } +// Suppress printing of additional help message in help and usage +// functions? + +int +suppress_verbose_help_message (void) +{ + user_pref.suppress_verbose_help_message = + check_str_pref ("suppress_verbose_help_message"); + + return 0; +} + + // Should things like: // // octave> ones (-1, 5)
--- a/src/user-prefs.h +++ b/src/user-prefs.h @@ -47,6 +47,7 @@ int save_precision; int silent_functions; int split_long_rows; + int suppress_verbose_help_message; int treat_neg_dim_as_zero; int warn_assign_as_truth_value; int warn_comma_in_global_decl; @@ -89,6 +90,7 @@ extern int return_last_computed_value (void); extern int silent_functions (void); extern int split_long_rows (void); +extern int suppress_verbose_help_message (void); extern int treat_neg_dim_as_zero (void); extern int warn_assign_as_truth_value (void); extern int warn_comma_in_global_decl (void);
--- a/src/variables.cc +++ b/src/variables.cc @@ -1634,6 +1634,12 @@ split_long_rows, "split long matrix rows instead of wrapping"); + DEFVAR ("suppress_verbose_help_message", + SBV_suppress_verbose_help_message, "false", 0, 0, 1, + suppress_verbose_help_message, + "suppress printing of message pointing to additional help in the\n\ +help and usage functions"); + DEFVAR ("stdin", SBV_stdin, 0.0, 0, 1, 1, 0, "file number of the standard input stream");