Skip to content

Commit 7255a81

Browse files
committed
code style fixes
1 parent eb6400c commit 7255a81

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

ext/json/json_parser.y

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,8 +349,7 @@ PHP_JSON_API void php_json_parser_init_ex(php_json_parser *parser,
349349
int options,
350350
int max_depth,
351351
const php_json_parser_methods *parser_methods)
352-
{
353-
352+
{
354353
memset(parser, 0, sizeof(php_json_parser));
355354
php_json_scanner_init(&parser->scanner, str, str_len, options);
356355
parser->depth = 1;

ext/json/php_json_scanner.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ typedef struct _php_json_scanner {
2828
php_json_ctype *limit; /* the last read character + 1 position */
2929
php_json_ctype *marker; /* marker position for backtracking */
3030
php_json_ctype *ctxmarker; /* marker position for context backtracking */
31-
php_json_ctype *str_start; /* start position of the string */
32-
php_json_ctype *input_start; /* start position of the string */
31+
php_json_ctype *str_start; /* dynamic position of the string under analysis */
32+
php_json_ctype *input_start; /* fixed start position of the original string provided to the scanner */
3333
php_json_ctype *pstr; /* string pointer for escapes conversion */
3434
zval value; /* value */
3535
int str_esc; /* number of extra characters for escaping */

0 commit comments

Comments
 (0)