Skip to content

Commit a0764f3

Browse files
committed
some cleanup
1 parent 34439b8 commit a0764f3

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

ext/json/json_scanner.re

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ void php_json_scanner_init(php_json_scanner *s, const char *str, size_t str_len,
104104
s->utf8_invalid = 0;
105105
s->utf8_invalid_count = 0;
106106
s->str_start = (php_json_ctype *)str; /* Initialize str_start */
107-
s->input_start = (php_json_ctype *)str; /* Initialize str_start */
107+
s->input_start = (php_json_ctype *)str; /* Initialize input_start */
108108

109109
s->cursor = (php_json_ctype *) str;
110110
s->limit = (php_json_ctype *) str + str_len;
@@ -121,12 +121,6 @@ int php_json_scan(php_json_scanner *s)
121121
std:
122122
s->token = s->cursor;
123123

124-
/*if (s->cursor >= s->limit) {
125-
s->errcode = PHP_JSON_ERROR_SYNTAX;
126-
s->errpos = (size_t)(s->str_start - s->input_start);
127-
return PHP_JSON_T_ERROR;
128-
}*/
129-
130124
/*!re2c
131125
re2c:indent:top = 1;
132126
re2c:yyfill:enable = 0;

0 commit comments

Comments
 (0)