Mercurial > hg > octave-lyh
diff src/user-prefs.cc @ 1037:d383ec996ee1
[project @ 1995-01-17 03:20:16 by jwe]
author | jwe |
---|---|
date | Tue, 17 Jan 1995 03:20:23 +0000 |
parents | dfe01093f657 |
children | 1aa6f2edd975 |
line wrap: on
line diff
--- a/src/user-prefs.cc +++ b/src/user-prefs.cc @@ -66,6 +66,7 @@ user_pref.warn_assign_as_truth_value = 0; user_pref.warn_comma_in_global_decl = 0; user_pref.warn_divide_by_zero = 0; + user_pref.warn_function_name_clash = 0; user_pref.default_save_format = 0; user_pref.editor = 0; @@ -451,6 +452,18 @@ return 0; } +// Generate warning if declared function name disagrees with the name +// of the file in which it is defined. + +int +warn_function_name_clash (void) +{ + user_pref.warn_function_name_clash = + check_str_pref ("warn_function_name_clash"); + + return 0; +} + int set_output_max_field_width (void) {