Tsukada
ttsuk****@users*****
2002年 5月 26日 (日) 15:14:21 JST
ttsukada 02/05/26 15:14:21 Modified: ext/mbstring php_mb.h Log: added error types Revision Changes Path 1.4 +5 -2 php4/ext/mbstring/php_mb.h Index: php_mb.h =================================================================== RCS file: /cvsroot/php-i18n/php4/ext/mbstring/php_mb.h,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- php_mb.h 25 May 2002 16:15:43 -0000 1.3 +++ php_mb.h 26 May 2002 06:14:21 -0000 1.4 @@ -171,10 +171,13 @@ PHP_MB_ERR_UNSUPPORTED_CONVERT, PHP_MB_ERR_UNSUPPORTED_IDENTIFY, PHP_MB_ERR_ILLEGAL_ARGUMENT, - PHP_MB_ERR_INDEX_OUT_OF_BOUNDS + PHP_MB_ERR_INDEX_OUT_OF_BOUNDS, + PHP_MB_ERR_ENCODING_DETECT_FAILURE, + PHP_MB_ERR_NOT_FOUND }; #define PHP_MB_IS_ERROR() (MBSTRG(last_errno) != PHP_MB_SUCCESS) +#define PHP_MB_NOT_ERROR() (MBSTRG(last_errno) == PHP_MB_SUCCESS) #define PHP_MB_ERRRST() { MBSTRG(last_errno) = PHP_MB_SUCCESS; } @@ -195,6 +198,6 @@ PHPAPI void _php_mb_error(int last_errno, const char *extra_msg TSRMLS_DC); -#define php_mb_error() _php_mb_error(MBSTRG(last_errno), NULL TSRMLS_DC) +#define php_mb_error() _php_mb_error(MBSTRG(last_errno), NULL TSRMLS_CC) #endif /* PHP_MB_H */