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: Michael Goffioul
Subject: MSVC compiler support [patch 35]: default history file
Date: Tue, 17 Oct 2006 22:11:16 +0200
User-agent: Thunderbird 1.5.0.7 (Windows/20060909)

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";

reply via email to

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