Searched refs:jp (Results 1 - 3 of 3) sorted by relevance

/PHP_TRUNK/ext/json/
H A DJSON_parser.c202 push(JSON_parser jp, int mode) argument
204 jp->top += 1;
205 if (jp->top >= jp->depth) {
206 jp->error_code = PHP_JSON_ERROR_DEPTH;
209 jp->stack[jp->top] = mode;
219 pop(JSON_parser jp, int mode) argument
221 if (jp->top < 0 || jp
244 JSON_parser jp = (JSON_parser)emalloc(sizeof(struct JSON_parser_struct)); local
263 free_JSON_parser(JSON_parser jp) argument
392 attach_zval(JSON_parser jp, int up, int cur, smart_str *key, int assoc TSRMLS_DC) argument
439 parse_JSON_ex(JSON_parser jp, zval *z, unsigned short utf16_json[], int length, int options TSRMLS_DC) argument
[all...]
H A DJSON_parser.h35 extern int parse_JSON_ex(JSON_parser jp, zval *z, unsigned short utf16_json[], int length, int options TSRMLS_DC);
36 extern int free_JSON_parser(JSON_parser jp);
38 static inline int parse_JSON(JSON_parser jp, zval *z, unsigned short utf16_json[], int length, int assoc TSRMLS_DC) argument
40 return parse_JSON_ex(jp, z, utf16_json, length, assoc ? PHP_JSON_OBJECT_AS_ARRAY : 0 TSRMLS_CC);
H A Djson.c671 JSON_parser jp; local
691 jp = new_JSON_parser(depth);
692 if (parse_JSON_ex(jp, z, utf16, utf16_len, options TSRMLS_CC)) {
719 jp->error_code = PHP_JSON_ERROR_NONE;
762 jp->error_code = PHP_JSON_ERROR_NONE;
769 JSON_G(error_code) = jp->error_code;
770 free_JSON_parser(jp);

Completed in 9 milliseconds