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:
dougt%meer.net 2005-06-14 17:11:19 +00:00
Родитель ac5b3c1b77
Коммит e91e8b22c2
4 изменённых файлов: 19 добавлений и 2 удалений

Просмотреть файл

@ -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;