[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
MSVC compiler support [patch 35]: default history file
From: |
John W. Eaton |
Subject: |
MSVC compiler support [patch 35]: default history file |
Date: |
Wed, 25 Oct 2006 22:04:10 -0400 |
On 17-Oct-2006, Michael Goffioul wrote:
| Use the correct sepchar when producing the default history file
| Index: src/oct-hist.cc
| ===================================================================
| RCS file: /cvs/octave/src/oct-hist.cc,v
| retrieving revision 1.85
| diff -p -c -r1.85 oct-hist.cc
| *** src/oct-hist.cc 30 Jun 2006 18:19:21 -0000 1.85
| --- src/oct-hist.cc 17 Oct 2006 11:07:42 -0000
| *************** default_history_file (void)
| *** 101,107 ****
| --- 101,113 ----
| if (! home_dir.empty ())
| {
| file = home_dir;
| + #ifndef _MSC_VER
| file.append ("/.octave_hist");
| + #else
| + if (file[file.length()-1] != file_ops::dir_sep_char)
| + file.append (file_ops::dir_sep_str);
| + file.append (".octave_hist");
| + #endif
| }
| else
| file = ".octave_hist";
Why does this matter? I thought the underlying Windows functions
could use either \ or /.
jwe
- MSVC compiler support [patch 31]: CHAR_BIT, (continued)
- MSVC compiler support [patch 31]: CHAR_BIT, John W. Eaton, 2006/10/17
- MSVC compiler support [patch 32]: ls, Michael Goffioul, 2006/10/17
- MSVC compiler support [patch 32]: ls, John W. Eaton, 2006/10/27
- Re: MSVC compiler support [patch 32]: ls, Michael Goffioul, 2006/10/27
- Re: MSVC compiler support [patch 32]: ls, John W. Eaton, 2006/10/27
- MSVC compiler support [patch 33]: Help, Michael Goffioul, 2006/10/17
- MSVC compiler support [patch 33]: Help, John W. Eaton, 2006/10/25
- MSVC compiler support [patch 34]: sepchar and load_path, Michael Goffioul, 2006/10/17
- MSVC compiler support [patch 34]: sepchar and load_path, John W. Eaton, 2006/10/27
- MSVC compiler support [patch 35]: default history file, Michael Goffioul, 2006/10/17
- MSVC compiler support [patch 35]: default history file,
John W. Eaton <=
- Re: MSVC compiler support [patch 35]: default history file, Michael Goffioul, 2006/10/26
- MSVC compiler support [patch 36]: abs of long, Michael Goffioul, 2006/10/17
- MSVC compiler support [patch 36]: abs of long, John W. Eaton, 2006/10/27
- Re: MSVC compiler support [patch 36]: abs of long, Michael Goffioul, 2006/10/28
- MSVC compiler support [patch 37]: popen/pclose, Michael Goffioul, 2006/10/17
- MSVC compiler support [patch 37]: popen/pclose, John W. Eaton, 2006/10/25
- Re: MSVC compiler support [patch 37]: popen/pclose, Michael Goffioul, 2006/10/26
- Re: MSVC compiler support [patch 37]: popen/pclose, Paul Kienzle, 2006/10/26
- Re: MSVC compiler support [patch 37]: popen/pclose, John W. Eaton, 2006/10/26
- MSVC compiler support [patch 38]: include <algorithm>, Michael Goffioul, 2006/10/17