]> granicus.if.org Git - php/commitdiff
more const keywording
authorNuno Lopes <nlopess@php.net>
Sat, 22 Jul 2006 15:22:56 +0000 (15:22 +0000)
committerNuno Lopes <nlopess@php.net>
Sat, 22 Jul 2006 15:22:56 +0000 (15:22 +0000)
ext/json/JSON_parser.c
ext/json/json.c

index 9b9340c6d913ae4a725de046266a4c8611d1677f..51f8b6c0410ad29393cbcd7049ddd2799a252158 100644 (file)
@@ -139,7 +139,7 @@ SOFTWARE.
     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 @@ static int ascii_class[128] = {
     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},
index 1b7de735d9b3026c39401ece602d9c4d412ddc72..cbd5d3deb63527382074e52f6cf2850344dbea40 100644 (file)
@@ -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[]
  *