octave-maintainers
[Top][All Lists]
Advanced

[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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]