further work on soundlib support code

move some inline code into functions
replace some magic numbers

The mingw code is not tested yet.
This commit is contained in:
nhmall
2023-01-31 22:19:29 -05:00
parent 4ccee5a177
commit 8ee42f5644
7 changed files with 214 additions and 75 deletions

View File

@@ -1083,9 +1083,8 @@ get_executable_path(void)
return path_buffer;
}
#ifdef __MINGW32__
char *
mingw_exepath(void)
windows_exepath(void)
{
char *p = (char *) 0;
@@ -1093,7 +1092,6 @@ mingw_exepath(void)
p = path_buffer;
return p;
}
#endif
char *
translate_path_variables(const char* str, char* buf)