From 5389aa19033153c09556d1362a8b8a56abccb8f5 Mon Sep 17 00:00:00 2001 From: Vladimir Chtchetkine Date: Tue, 16 Feb 2010 10:38:35 -0800 Subject: Merge memory checking from sandbox Change-id: Ibce845d0 --- android/utils/debug.h | 1 + android/utils/path.h | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'android/utils') diff --git a/android/utils/debug.h b/android/utils/debug.h index d6bd3f9..06b9baf 100644 --- a/android/utils/debug.h +++ b/android/utils/debug.h @@ -34,6 +34,7 @@ _VERBOSE_TAG(hw_control, "emulated power/flashlight/led/vibrator") \ _VERBOSE_TAG(avd_config, "android virtual device configuration") \ _VERBOSE_TAG(sensors, "emulated sensors") \ + _VERBOSE_TAG(memcheck, "memory checker") \ #define _VERBOSE_TAG(x,y) VERBOSE_##x, typedef enum { diff --git a/android/utils/path.h b/android/utils/path.h index e822834..e15e6ed 100644 --- a/android/utils/path.h +++ b/android/utils/path.h @@ -28,8 +28,10 @@ /* define PATH_SEP as a string containing the directory separateor */ #ifdef _WIN32 # define PATH_SEP "\\" +# define PATH_SEP_C '\\' #else # define PATH_SEP "/" +# define PATH_SEP_C '/' #endif /* get MAX_PATH, note that PATH_MAX is set to 260 on Windows for @@ -65,7 +67,7 @@ extern ABool path_can_write( const char* path ); /* try to make a directory */ extern APosixStatus path_mkdir( const char* path, int mode ); -/* ensure that a given directory exists, create it if not, +/* ensure that a given directory exists, create it if not, 0 on success, -1 on error */ extern APosixStatus path_mkdir_if_needed( const char* path, int mode ); -- cgit v1.1