Lines Matching refs:CG
102 CG(zend_lineno)++; \
111 CG(zend_lineno)++; \
179 CG(parse_error) = 0; in startup_scanner()
180 CG(doc_comment) = NULL; in startup_scanner()
181 CG(extra_fn_flags) = 0; in startup_scanner()
192 CG(parse_error) = 0; in shutdown_scanner()
218 lex_state->lineno = CG(zend_lineno); in zend_save_lexical_state()
231 lex_state->ast = CG(ast); in zend_save_lexical_state()
232 lex_state->ast_arena = CG(ast_arena); in zend_save_lexical_state()
253 CG(zend_lineno) = lex_state->lineno; in zend_restore_lexical_state()
271 CG(ast) = lex_state->ast; in zend_restore_lexical_state()
272 CG(ast_arena) = lex_state->ast_arena; in zend_restore_lexical_state()
279 …zend_llist_del_element(&CG(open_files), file_handle, (int (*)(void *, void *)) zend_compare_file_h… in zend_destroy_file_handle()
437 if (CG(detect_unicode)) { in zend_multibyte_find_script_encoding()
447 if (!CG(script_encoding_list) || !CG(script_encoding_list_size)) { in zend_multibyte_find_script_encoding()
452 if (CG(script_encoding_list_size) > 1) { in zend_multibyte_find_script_encoding()
453 …g_detector(LANG_SCNG(script_org), LANG_SCNG(script_org_size), CG(script_encoding_list), CG(script_… in zend_multibyte_find_script_encoding()
456 return CG(script_encoding_list)[0]; in zend_multibyte_find_script_encoding()
507 if (CG(start_lineno) == 2 && file_handle->type == ZEND_HANDLE_FP && file_handle->handle.fp) { in open_file_for_scanning()
517 zend_llist_add_element(&CG(open_files), file_handle); in open_file_for_scanning()
519 zend_file_handle *fh = (zend_file_handle*)zend_llist_get_last(&CG(open_files)); in open_file_for_scanning()
530 if (CG(multibyte)) { in open_file_for_scanning()
563 if (CG(start_lineno)) { in open_file_for_scanning()
564 CG(zend_lineno) = CG(start_lineno); in open_file_for_scanning()
565 CG(start_lineno) = 0; in open_file_for_scanning()
567 CG(zend_lineno) = 1; in open_file_for_scanning()
571 CG(increment_lineno) = 0; in open_file_for_scanning()
579 zend_bool original_in_compilation = CG(in_compilation); in END_EXTERN_C()
581 CG(in_compilation) = 1; in END_EXTERN_C()
582 CG(ast) = NULL; in END_EXTERN_C()
583 CG(ast_arena) = zend_arena_create(1024 * 32); in END_EXTERN_C()
586 int last_lineno = CG(zend_lineno); in END_EXTERN_C()
589 zend_op_array *original_active_op_array = CG(active_op_array); in END_EXTERN_C()
593 CG(active_op_array) = op_array; in END_EXTERN_C()
596 zend_ast_process(CG(ast)); in END_EXTERN_C()
601 zend_compile_top_stmt(CG(ast)); in END_EXTERN_C()
602 CG(zend_lineno) = last_lineno; in END_EXTERN_C()
610 CG(active_op_array) = original_active_op_array; in END_EXTERN_C()
613 zend_ast_destroy(CG(ast)); in END_EXTERN_C()
614 zend_arena_destroy(CG(ast_arena)); in END_EXTERN_C()
616 CG(in_compilation) = original_in_compilation; in END_EXTERN_C()
700 if (CG(multibyte)) { in zend_prepare_string_for_scanning()
722 CG(zend_lineno) = 1; in zend_prepare_string_for_scanning()
723 CG(increment_lineno) = 0; in zend_prepare_string_for_scanning()
1071 CG(zend_lineno)++; in zend_scan_escape_string()
1103 int start_line = CG(zend_lineno); in lex_scan()
1795 if (CG(short_tags)) {
1820 …if (CG(short_tags) || !strncasecmp((char*)YYCURSOR + 1, "php", 3) || (*(YYCURSOR + 1) == '=')) { /…
1906 CG(zend_lineno)++;
1945 zend_error(E_COMPILE_WARNING, "Unterminated comment starting line %d", CG(zend_lineno));
1952 CG(doc_comment) = zend_string_init(yytext, yyleng, 0);
2016 CG(zend_lineno)++;
2081 CG(zend_lineno)++;
2291 CG(increment_lineno) = 1; /* For newline before label */
2365 CG(increment_lineno) = 1; /* For newline before label */