зеркало из https://github.com/mozilla/gecko-dev.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:
Родитель
ac5b3c1b77
Коммит
e91e8b22c2
|
@ -198,6 +198,11 @@
|
||||||
|
|
||||||
|
|
||||||
// From stdio.cpp
|
// From stdio.cpp
|
||||||
|
#ifdef access
|
||||||
|
#undef access
|
||||||
|
#endif
|
||||||
|
#define access mozce_access
|
||||||
|
|
||||||
#ifdef rewind
|
#ifdef rewind
|
||||||
#undef rewind
|
#undef rewind
|
||||||
#endif
|
#endif
|
||||||
|
@ -1235,6 +1240,7 @@ extern "C" {
|
||||||
MOZCE_SHUNT_API int mozce_stat(const char *, struct _stat *);
|
MOZCE_SHUNT_API int mozce_stat(const char *, struct _stat *);
|
||||||
|
|
||||||
// From stdio.cpp
|
// 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 void mozce_rewind(FILE* inStream);
|
||||||
MOZCE_SHUNT_API FILE* mozce_fdopen(int inFD, const char* inMode);
|
MOZCE_SHUNT_API FILE* mozce_fdopen(int inFD, const char* inMode);
|
||||||
MOZCE_SHUNT_API void mozce_perror(const char* inString);
|
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;
|
char* retval = NULL;
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG_NSPR_ALL
|
||||||
|
|
||||||
if (!strcmp(inName, "NSPR_LOG_MODULES"))
|
if (!strcmp(inName, "NSPR_LOG_MODULES"))
|
||||||
return "all:5";
|
return "all:5";
|
||||||
|
|
|
@ -48,6 +48,17 @@ extern "C" {
|
||||||
#endif
|
#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_SHUNT_API void mozce_rewind(FILE* inStream)
|
||||||
{
|
{
|
||||||
MOZCE_PRECHECK
|
MOZCE_PRECHECK
|
||||||
|
|
|
@ -821,7 +821,7 @@ MOZCE_SHUNT_API BOOL mozce_VerQueryValueA(const LPVOID inBlock, LPSTR inSubBlock
|
||||||
MOZCE_PRECHECK
|
MOZCE_PRECHECK
|
||||||
|
|
||||||
#ifdef DEBUG
|
#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
|
#endif
|
||||||
|
|
||||||
BOOL retval = FALSE;
|
BOOL retval = FALSE;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче