comparison src/load-path.h @ 8008:4d13a7a2f6ab

dir_path: use singleton class for static data members
author John W. Eaton <jwe@octave.org>
date Tue, 05 Aug 2008 12:04:10 -0400
parents dd5cc5016487
children a14bdf90be55
comparison
equal deleted inserted replaced
8007:a2ab20ba78f7 8008:4d13a7a2f6ab
207 static void set_command_line_path (const std::string& p) 207 static void set_command_line_path (const std::string& p)
208 { 208 {
209 if (command_line_path.empty ()) 209 if (command_line_path.empty ())
210 command_line_path = p; 210 command_line_path = p;
211 else 211 else
212 command_line_path += dir_path::path_sep_str + p; 212 command_line_path += dir_path::path_sep_str () + p;
213 } 213 }
214 214
215 static std::string system_path (void) 215 static std::string system_path (void)
216 { 216 {
217 return instance_ok () ? instance->do_system_path () : std::string (); 217 return instance_ok () ? instance->do_system_path () : std::string ();