mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
VC++ refinements
This commit is contained in:
parent
96aa6712a3
commit
d39fb3d965
@ -110,7 +110,7 @@ read_source(const string &root) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
_root = Filename::from_os_specific(get_cwd());
|
_root = get_cwd();
|
||||||
cerr << "Root is " << _root << "\n";
|
cerr << "Root is " << _root << "\n";
|
||||||
|
|
||||||
_def_scope = new PPScope(&_named_scopes);
|
_def_scope = new PPScope(&_named_scopes);
|
||||||
@ -381,7 +381,7 @@ read_global_file() {
|
|||||||
// Description: Calls the system getcwd(), automatically allocating a
|
// Description: Calls the system getcwd(), automatically allocating a
|
||||||
// large enough string.
|
// large enough string.
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
string PPMain::
|
Filename PPMain::
|
||||||
get_cwd() {
|
get_cwd() {
|
||||||
static size_t bufsize = 1024;
|
static size_t bufsize = 1024;
|
||||||
static char *buffer = NULL;
|
static char *buffer = NULL;
|
||||||
@ -401,5 +401,5 @@ get_cwd() {
|
|||||||
assert(buffer != (char *)NULL);
|
assert(buffer != (char *)NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
return string(buffer);
|
return Filename::from_os_specific(buffer);
|
||||||
}
|
}
|
||||||
|
@ -40,7 +40,7 @@ private:
|
|||||||
bool r_process_all(PPDirectory *dir);
|
bool r_process_all(PPDirectory *dir);
|
||||||
bool p_process(PPDirectory *dir);
|
bool p_process(PPDirectory *dir);
|
||||||
bool read_global_file();
|
bool read_global_file();
|
||||||
static string get_cwd();
|
static Filename get_cwd();
|
||||||
|
|
||||||
|
|
||||||
PPScope *_global_scope;
|
PPScope *_global_scope;
|
||||||
|
@ -136,6 +136,15 @@
|
|||||||
<File
|
<File
|
||||||
RelativePath="filename.h">
|
RelativePath="filename.h">
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="globPattern.I">
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="globPattern.cxx">
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="globPattern.h">
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="gnu_getopt.c">
|
RelativePath="gnu_getopt.c">
|
||||||
</File>
|
</File>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user