cvs: TSRM / tsrm_virtual_cwd.h

From: Date: Fri, 04 Aug 2006 17:29:15 +0000
Subject: cvs: TSRM / tsrm_virtual_cwd.h
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-5159@lists.php.net to get a copy of this message
andrei Fri Aug 4 17:29:15 2006 UTC Modified files: /TSRM tsrm_virtual_cwd.h Log: Add Unicode constants for default slash and directory separator. http://cvs.php.net/viewvc.cgi/TSRM/tsrm_virtual_cwd.h?r1=1.54&r2=1.55&diff_format=u Index: TSRM/tsrm_virtual_cwd.h diff -u TSRM/tsrm_virtual_cwd.h:1.54 TSRM/tsrm_virtual_cwd.h:1.55 --- TSRM/tsrm_virtual_cwd.h:1.54 Thu Aug 3 23:56:46 2006 +++ TSRM/tsrm_virtual_cwd.h Fri Aug 4 17:29:15 2006 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: tsrm_virtual_cwd.h,v 1.54 2006/08/03 23:56:46 andrei Exp $ */ +/* $Id: tsrm_virtual_cwd.h,v 1.55 2006/08/04 17:29:15 andrei Exp $ */ #ifndef VIRTUAL_CWD_H #define VIRTUAL_CWD_H @@ -57,6 +57,8 @@ #define IS_SLASH_P(c) (*(c) == '/' || \ (*(c) == '\\' && !IsDBCSLeadByte(*(c-1)))) +#define DEFAULT_U_SLASH ((UChar)0x5c) /*'\\'*/ +#define DEFAULT_U_DIR_SEPARATOR ((UChar)0x3b) /*';'*/ #define IS_U_SLASH(c) ((UChar32)(c) == (UChar32)0x2f /*'/'*/ || (UChar32)(c) == (UChar32)0x5c /*'\\'*/) #define IS_U_SLASH_P(c) IS_SLASH(*(c)) @@ -78,6 +80,8 @@ #define IS_SLASH(c) ((c) == '/' || (c) == '\\') #define IS_SLASH_P(c) IS_SLASH(*(c)) +#define DEFAULT_U_SLASH ((UChar)0x2f) /*'/'*/ +#define DEFAULT_U_DIR_SEPARATOR ((UChar)0x3b) /*';'*/ #define IS_U_SLASH(c) ((UChar32)(c) == (UChar32)0x2f /*'/'*/ || (UChar32)(c) == (UChar32)0x5c /*'\\'*/) #define IS_U_SLASH_P(c) IS_U_SLASH(*(c)) @@ -94,13 +98,16 @@ #ifdef __riscos__ #define DEFAULT_DIR_SEPARATOR ';' +#define DEFAULT_U_DIR_SEPARATOR ((UChar)0x3b) /*';'*/ #else #define DEFAULT_DIR_SEPARATOR ':' +#define DEFAULT_U_DIR_SEPARATOR ((UChar)0x3a) /*':'*/ #endif #define IS_SLASH(c) ((c) == '/') #define IS_SLASH_P(c) IS_SLASH(*(c)) +#define DEFAULT_U_SLASH ((UChar)0x2f) /*'/'*/ #define IS_U_SLASH(c) ((UChar32)(c) == (UChar32)0x2f /*'/'*/) #define IS_U_SLASH_P(c) IS_U_SLASH(*(c))

« previous php.zend-engine.cvs (#5159) next »