Mercurial > octave-nkf
comparison src/defaults.cc @ 2512:fda09c1e787e
[project @ 1996-11-14 08:39:41 by jwe]
author | jwe |
---|---|
date | Thu, 14 Nov 1996 08:39:47 +0000 |
parents | 06595bc7f2d0 |
children | 4f095783ee43 |
comparison
equal
deleted
inserted
replaced
2511:9b0dd36714eb | 2512:fda09c1e787e |
---|---|
182 } | 182 } |
183 | 183 |
184 static void | 184 static void |
185 set_default_info_file (void) | 185 set_default_info_file (void) |
186 { | 186 { |
187 string std_info_file = subst_octave_home (OCTAVE_INFOFILE); | |
188 | |
187 char *oct_info_file = getenv ("OCTAVE_INFO_FILE"); | 189 char *oct_info_file = getenv ("OCTAVE_INFO_FILE"); |
188 | 190 |
189 if (oct_info_file) | 191 Vinfo_file = oct_info_file ? string (oct_info_file) : std_info_file; |
190 Vinfo_file = string (oct_info_file); | |
191 else | |
192 { | |
193 Vinfo_file = Vinfo_dir; | |
194 Vinfo_file.append ("/octave.info"); | |
195 } | |
196 } | 192 } |
197 | 193 |
198 static void | 194 static void |
199 set_default_info_prog (void) | 195 set_default_info_prog (void) |
200 { | 196 { |