comparison src/load-path.h @ 5835:07dd13bfc0ba

[project @ 2006-05-31 18:21:49 by jwe]
author jwe
date Wed, 31 May 2006 18:21:57 +0000
parents 5e41e06f6a78
children e884ab4f29ee
comparison
equal deleted inserted replaced
5834:15b8c2aa2bf5 5835:07dd13bfc0ba
27 #include <iostream> 27 #include <iostream>
28 #include <list> 28 #include <list>
29 #include <map> 29 #include <map>
30 #include <string> 30 #include <string>
31 31
32 #include "pathsearch.h"
32 #include "str-vec.h" 33 #include "str-vec.h"
33 34
34 class 35 class
35 load_path 36 load_path
36 { 37 {
157 158
158 static void set_remove_hook (hook_function_ptr f) { remove_hook = f; } 159 static void set_remove_hook (hook_function_ptr f) { remove_hook = f; }
159 160
160 static void set_command_line_path (const std::string& p) 161 static void set_command_line_path (const std::string& p)
161 { 162 {
162 command_line_path = p; 163 if (command_line_path.empty ())
164 command_line_path = p;
165 else
166 command_line_path += dir_path::path_sep_str + p;
163 } 167 }
164 168
165 private: 169 private:
166 170
167 static const int M_FILE = 1; 171 static const int M_FILE = 1;