nlopess Sat Jul 22 15:22:56 2006 UTC Modified files: (Branch: PHP_5_2) /php-src/ext/json JSON_parser.c json.c Log: more const keywording http://cvs.php.net/viewvc.cgi/php-src/ext/json/JSON_parser.c?r1=1.1.2.2&r2=1.1.2.3&diff_format=u Index: php-src/ext/json/JSON_parser.c diff -u php-src/ext/json/JSON_parser.c:1.1.2.2 php-src/ext/json/JSON_parser.c:1.1.2.3 --- php-src/ext/json/JSON_parser.c:1.1.2.2 Thu Jul 20 09:19:02 2006 +++ php-src/ext/json/JSON_parser.c Sat Jul 22 15:22:56 2006 @@ -139,7 +139,7 @@ This table maps the 128 ASCII characters into the 32 character classes. The remaining Unicode characters should be mapped to S_ETC. */ -static int ascii_class[128] = { +static const int ascii_class[128] = { S_ERR, S_ERR, S_ERR, S_ERR, S_ERR, S_ERR, S_ERR, S_ERR, S_ERR, S_WSP, S_WSP, S_ERR, S_ERR, S_WSP, S_ERR, S_ERR, S_ERR, S_ERR, S_ERR, S_ERR, S_ERR, S_ERR, S_ERR, S_ERR, @@ -168,7 +168,7 @@ 0 and 29. An action is a negative number between -1 and -9. A JSON text is accepted if the end of the text is in state 9 and mode is MODE_DONE. */ -static int state_transition_table[30][31] = { +static const int state_transition_table[30][31] = { /* 0*/ { 0, 0,-8,-1,-6,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}, /* 1*/ { 1, 1,-1,-9,-1,-1,-1,-1, 3,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}, /* 2*/ { 2, 2,-8,-1,-6,-5,-1,-1, 3,-1,-1,-1,20,-1,21,22,-1,-1,-1,-1,-1,13,-1,17,-1,-1,10,-1,-1,-1,-1}, http://cvs.php.net/viewvc.cgi/php-src/ext/json/json.c?r1=1.9.2.4&r2=1.9.2.5&diff_format=u Index: php-src/ext/json/json.c diff -u php-src/ext/json/json.c:1.9.2.4 php-src/ext/json/json.c:1.9.2.5 --- php-src/ext/json/json.c:1.9.2.4 Thu Jul 20 09:33:28 2006 +++ php-src/ext/json/json.c Sat Jul 22 15:22:56 2006 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: json.c,v 1.9.2.4 2006/07/20 09:33:28 tony2001 Exp $ */ +/* $Id: json.c,v 1.9.2.5 2006/07/22 15:22:56 nlopess Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -33,7 +33,7 @@ /* If you declare any globals in php_json.h uncomment this: ZEND_DECLARE_MODULE_GLOBALS(json) */ -static char digits[] = "0123456789abcdef"; +static const char digits[] = "0123456789abcdef"; /* {{{ json_functions[] *
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php