зеркало из https://github.com/mozilla/pjs.git
Implementing |access|. Disabling NSPR all:5 logging during debug. Indicating that VerQueryValue is not a complete impl. via debug output.
This commit is contained in:
Родитель
88bc2c9437
Коммит
269a475b49
|
@ -198,6 +198,11 @@
|
|||
|
||||
|
||||
// From stdio.cpp
|
||||
#ifdef access
|
||||
#undef access
|
||||
#endif
|
||||
#define access mozce_access
|
||||
|
||||
#ifdef rewind
|
||||
#undef rewind
|
||||
#endif
|
||||
|
@ -1235,6 +1240,7 @@ extern "C" {
|
|||
MOZCE_SHUNT_API int mozce_stat(const char *, struct _stat *);
|
||||
|
||||
// From stdio.cpp
|
||||
MOZCE_SHUNT_API int mozce_access(const char *path, int mode);
|
||||
MOZCE_SHUNT_API void mozce_rewind(FILE* inStream);
|
||||
MOZCE_SHUNT_API FILE* mozce_fdopen(int inFD, const char* inMode);
|
||||
MOZCE_SHUNT_API void mozce_perror(const char* inString);
|
||||
|
|
|
@ -72,7 +72,7 @@ MOZCE_SHUNT_API char* mozce_getenv(const char* inName)
|
|||
|
||||
char* retval = NULL;
|
||||
|
||||
#ifdef DEBUG
|
||||
#ifdef DEBUG_NSPR_ALL
|
||||
|
||||
if (!strcmp(inName, "NSPR_LOG_MODULES"))
|
||||
return "all:5";
|
||||
|
|
|
@ -48,6 +48,17 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
|
||||
MOZCE_SHUNT_API int mozce_access(const char *path, int mode)
|
||||
{
|
||||
MOZCE_PRECHECK
|
||||
|
||||
#ifdef DEBUG
|
||||
mozce_printf("-- mozce_access called\n");
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
MOZCE_SHUNT_API void mozce_rewind(FILE* inStream)
|
||||
{
|
||||
MOZCE_PRECHECK
|
||||
|
|
|
@ -821,7 +821,7 @@ MOZCE_SHUNT_API BOOL mozce_VerQueryValueA(const LPVOID inBlock, LPSTR inSubBlock
|
|||
MOZCE_PRECHECK
|
||||
|
||||
#ifdef DEBUG
|
||||
mozce_printf("mozce_VerQueryValueA called\n");
|
||||
mozce_printf("mozce_VerQueryValueA called. Incomplete implementation. Your code will have to manually convert strings.\n");
|
||||
#endif
|
||||
|
||||
BOOL retval = FALSE;
|
||||
|
|
Загрузка…
Ссылка в новой задаче