Lines Matching refs:SCNG

52 #define YYCURSOR  SCNG(yy_cursor)
53 #define YYLIMIT SCNG(yy_limit)
54 #define YYMARKER SCNG(yy_marker)
56 #define YYGETCONDITION() SCNG(yy_state)
57 #define YYSETCONDITION(s) SCNG(yy_state) = s
64 #define yytext ((char*)SCNG(yy_text))
65 #define yyleng SCNG(yy_leng)
84 #define SCNG LANG_SCNG macro
112 #define SET_DOUBLE_QUOTES_SCANNED_LENGTH(len) SCNG(scanned_string_len) = (len)
113 #define GET_DOUBLE_QUOTES_SCANNED_LENGTH() SCNG(scanned_string_len)
166 zend_stack_push(&SCNG(state_stack), (void *) &YYGETCONDITION()); in _yy_push_state()
174 int *stack_state = zend_stack_top(&SCNG(state_stack)); in yy_pop_state()
176 zend_stack_del_top(&SCNG(state_stack)); in yy_pop_state()
183 if (!SCNG(yy_start)) { in yy_scan_buffer()
184 SCNG(yy_start) = YYCURSOR; in yy_scan_buffer()
193 zend_stack_init(&SCNG(state_stack), sizeof(int)); in startup_scanner()
194 zend_stack_init(&SCNG(nest_location_stack), sizeof(zend_nest_location)); in startup_scanner()
195 zend_ptr_stack_init(&SCNG(heredoc_label_stack)); in startup_scanner()
196 SCNG(heredoc_scan_ahead) = 0; in startup_scanner()
207 zend_stack_destroy(&SCNG(state_stack)); in shutdown_scanner()
208 zend_stack_destroy(&SCNG(nest_location_stack)); in shutdown_scanner()
209 zend_ptr_stack_clean(&SCNG(heredoc_label_stack), (void (*)(void *)) &heredoc_label_dtor, 1); in shutdown_scanner()
210 zend_ptr_stack_destroy(&SCNG(heredoc_label_stack)); in shutdown_scanner()
211 SCNG(heredoc_scan_ahead) = 0; in shutdown_scanner()
212 SCNG(on_event) = NULL; in shutdown_scanner()
217 lex_state->yy_leng = SCNG(yy_leng); in zend_save_lexical_state()
218 lex_state->yy_start = SCNG(yy_start); in zend_save_lexical_state()
219 lex_state->yy_text = SCNG(yy_text); in zend_save_lexical_state()
220 lex_state->yy_cursor = SCNG(yy_cursor); in zend_save_lexical_state()
221 lex_state->yy_marker = SCNG(yy_marker); in zend_save_lexical_state()
222 lex_state->yy_limit = SCNG(yy_limit); in zend_save_lexical_state()
224 lex_state->state_stack = SCNG(state_stack); in zend_save_lexical_state()
225 zend_stack_init(&SCNG(state_stack), sizeof(int)); in zend_save_lexical_state()
227 lex_state->nest_location_stack = SCNG(nest_location_stack); in zend_save_lexical_state()
228 zend_stack_init(&SCNG(nest_location_stack), sizeof(zend_nest_location)); in zend_save_lexical_state()
230 lex_state->heredoc_label_stack = SCNG(heredoc_label_stack); in zend_save_lexical_state()
231 zend_ptr_stack_init(&SCNG(heredoc_label_stack)); in zend_save_lexical_state()
233 lex_state->in = SCNG(yy_in); in zend_save_lexical_state()
239 lex_state->script_org = SCNG(script_org); in zend_save_lexical_state()
240 lex_state->script_org_size = SCNG(script_org_size); in zend_save_lexical_state()
241 lex_state->script_filtered = SCNG(script_filtered); in zend_save_lexical_state()
242 lex_state->script_filtered_size = SCNG(script_filtered_size); in zend_save_lexical_state()
243 lex_state->input_filter = SCNG(input_filter); in zend_save_lexical_state()
244 lex_state->output_filter = SCNG(output_filter); in zend_save_lexical_state()
245 lex_state->script_encoding = SCNG(script_encoding); in zend_save_lexical_state()
247 lex_state->on_event = SCNG(on_event); in zend_save_lexical_state()
248 lex_state->on_event_context = SCNG(on_event_context); in zend_save_lexical_state()
256 SCNG(yy_leng) = lex_state->yy_leng; in zend_restore_lexical_state()
257 SCNG(yy_start) = lex_state->yy_start; in zend_restore_lexical_state()
258 SCNG(yy_text) = lex_state->yy_text; in zend_restore_lexical_state()
259 SCNG(yy_cursor) = lex_state->yy_cursor; in zend_restore_lexical_state()
260 SCNG(yy_marker) = lex_state->yy_marker; in zend_restore_lexical_state()
261 SCNG(yy_limit) = lex_state->yy_limit; in zend_restore_lexical_state()
263 zend_stack_destroy(&SCNG(state_stack)); in zend_restore_lexical_state()
264 SCNG(state_stack) = lex_state->state_stack; in zend_restore_lexical_state()
266 zend_stack_destroy(&SCNG(nest_location_stack)); in zend_restore_lexical_state()
267 SCNG(nest_location_stack) = lex_state->nest_location_stack; in zend_restore_lexical_state()
269 zend_ptr_stack_clean(&SCNG(heredoc_label_stack), (void (*)(void *)) &heredoc_label_dtor, 1); in zend_restore_lexical_state()
270 zend_ptr_stack_destroy(&SCNG(heredoc_label_stack)); in zend_restore_lexical_state()
271 SCNG(heredoc_label_stack) = lex_state->heredoc_label_stack; in zend_restore_lexical_state()
273 SCNG(yy_in) = lex_state->in; in zend_restore_lexical_state()
278 if (SCNG(script_filtered)) { in zend_restore_lexical_state()
279 efree(SCNG(script_filtered)); in zend_restore_lexical_state()
280 SCNG(script_filtered) = NULL; in zend_restore_lexical_state()
282 SCNG(script_org) = lex_state->script_org; in zend_restore_lexical_state()
283 SCNG(script_org_size) = lex_state->script_org_size; in zend_restore_lexical_state()
284 SCNG(script_filtered) = lex_state->script_filtered; in zend_restore_lexical_state()
285 SCNG(script_filtered_size) = lex_state->script_filtered_size; in zend_restore_lexical_state()
286 SCNG(input_filter) = lex_state->input_filter; in zend_restore_lexical_state()
287 SCNG(output_filter) = lex_state->output_filter; in zend_restore_lexical_state()
288 SCNG(script_encoding) = lex_state->script_encoding; in zend_restore_lexical_state()
290 SCNG(on_event) = lex_state->on_event; in zend_restore_lexical_state()
291 SCNG(on_event_context) = lex_state->on_event_context; in zend_restore_lexical_state()
313 if (SCNG(on_event)) { in zend_lex_tstring()
314 SCNG(on_event)(ON_FEEDBACK, T_STRING, 0, (char *) ident, length, SCNG(on_event_context)); in zend_lex_tstring()
543 SCNG(yy_in) = file_handle; in open_file_for_scanning()
544 SCNG(yy_start) = NULL; in open_file_for_scanning()
548 SCNG(script_org) = (unsigned char*)buf; in open_file_for_scanning()
549 SCNG(script_org_size) = size; in open_file_for_scanning()
550 SCNG(script_filtered) = NULL; in open_file_for_scanning()
554 if (SCNG(input_filter)) { in open_file_for_scanning()
555 …if ((size_t)-1 == SCNG(input_filter)(&SCNG(script_filtered), &SCNG(script_filtered_size), SCNG(scr… in open_file_for_scanning()
559 buf = (char*)SCNG(script_filtered); in open_file_for_scanning()
560 size = SCNG(script_filtered_size); in open_file_for_scanning()
563 SCNG(yy_start) = (unsigned char *)buf; in open_file_for_scanning()
732 SCNG(yy_in) = NULL; in zend_prepare_string_for_scanning()
733 SCNG(yy_start) = NULL; in zend_prepare_string_for_scanning()
739 SCNG(script_org) = (unsigned char*)buf; in zend_prepare_string_for_scanning()
740 SCNG(script_org_size) = size; in zend_prepare_string_for_scanning()
741 SCNG(script_filtered) = NULL; in zend_prepare_string_for_scanning()
745 if (SCNG(input_filter)) { in zend_prepare_string_for_scanning()
746 …if ((size_t)-1 == SCNG(input_filter)(&SCNG(script_filtered), &SCNG(script_filtered_size), SCNG(scr… in zend_prepare_string_for_scanning()
750 buf = (char*)SCNG(script_filtered); in zend_prepare_string_for_scanning()
751 size = SCNG(script_filtered_size); in zend_prepare_string_for_scanning()
765 size_t offset = SCNG(yy_cursor) - SCNG(yy_start); in zend_get_scanned_file_offset()
766 if (SCNG(input_filter)) { in zend_get_scanned_file_offset()
770 if ((size_t)-1 == SCNG(input_filter)(&p, &length, SCNG(script_org), offset)) { in zend_get_scanned_file_offset()
837 if (SCNG(script_filtered)) { in highlight_file()
838 efree(SCNG(script_filtered)); in highlight_file()
839 SCNG(script_filtered) = NULL; in highlight_file()
857 if (SCNG(script_filtered)) { in highlight_string()
858 efree(SCNG(script_filtered)); in highlight_string()
859 SCNG(script_filtered) = NULL; in highlight_string()
871 if (!SCNG(input_filter)) { in zend_multibyte_yyinput_again()
872 if (SCNG(script_filtered)) { in zend_multibyte_yyinput_again()
873 efree(SCNG(script_filtered)); in zend_multibyte_yyinput_again()
874 SCNG(script_filtered) = NULL; in zend_multibyte_yyinput_again()
876 SCNG(script_filtered_size) = 0; in zend_multibyte_yyinput_again()
877 length = SCNG(script_org_size); in zend_multibyte_yyinput_again()
878 new_yy_start = SCNG(script_org); in zend_multibyte_yyinput_again()
880 …if ((size_t)-1 == SCNG(input_filter)(&new_yy_start, &length, SCNG(script_org), SCNG(script_org_siz… in zend_multibyte_yyinput_again()
884 if (SCNG(script_filtered)) { in zend_multibyte_yyinput_again()
885 efree(SCNG(script_filtered)); in zend_multibyte_yyinput_again()
887 SCNG(script_filtered) = new_yy_start; in zend_multibyte_yyinput_again()
888 SCNG(script_filtered_size) = length; in zend_multibyte_yyinput_again()
891 SCNG(yy_cursor) = new_yy_start + (SCNG(yy_cursor) - SCNG(yy_start)); in zend_multibyte_yyinput_again()
892 SCNG(yy_marker) = new_yy_start + (SCNG(yy_marker) - SCNG(yy_start)); in zend_multibyte_yyinput_again()
893 SCNG(yy_text) = new_yy_start + (SCNG(yy_text) - SCNG(yy_start)); in zend_multibyte_yyinput_again()
894 SCNG(yy_limit) = new_yy_start + length; in zend_multibyte_yyinput_again()
896 SCNG(yy_start) = new_yy_start; in zend_multibyte_yyinput_again()
902 if (SCNG(output_filter)) { \
905 SCNG(output_filter)((unsigned char **)&s, &sz, (unsigned char *)yytext, (size_t)yyleng); \
1100 if (octal_buf[2] && (octal_buf[0] > '3') && !SCNG(heredoc_scan_ahead)) { in zend_scan_escape_string()
1125 if (SCNG(output_filter)) { in zend_scan_escape_string()
1130 SCNG(output_filter)(&str, &sz, (unsigned char *)s, (size_t)Z_STRLEN_P(zendlval)); in zend_scan_escape_string()
1239 zend_ptr_stack_push(&SCNG(heredoc_label_stack), (void *) new_heredoc_label); in copy_heredoc_label_stack()
1264 zend_stack_push(&SCNG(nest_location_stack), &nest_loc); in enter_nesting()
1269 if (zend_stack_is_empty(&SCNG(nest_location_stack))) { in exit_nesting()
1274 zend_nest_location *nest_loc = zend_stack_top(&SCNG(nest_location_stack)); in exit_nesting()
1284 zend_stack_del_top(&SCNG(nest_location_stack)); in exit_nesting()
1290 if (!zend_stack_is_empty(&SCNG(nest_location_stack))) { in check_nesting_at_end()
1291 zend_nest_location *nest_loc = zend_stack_top(&SCNG(nest_location_stack)); in check_nesting_at_end()
1355 SCNG(yy_text) = YYCURSOR; in lex_scan()
1373 <!*> := yyleng = YYCURSOR - SCNG(yy_text); in lex_scan()
1905 if (!zend_stack_is_empty(&SCNG(state_stack))) { in lex_scan()
2283 yyleng = YYCURSOR - SCNG(yy_text);
2285 if (SCNG(output_filter)) {
2290 …readsize = SCNG(output_filter)((unsigned char **)&s, &sz, (unsigned char *)yytext, (size_t)yyleng);
2392 yyleng = YYCURSOR - SCNG(yy_text);
2421 yyleng = YYCURSOR - SCNG(yy_text);
2466 yyleng = YYLIMIT - SCNG(yy_text);
2528 if (SCNG(output_filter)) {
2534SCNG(output_filter)((unsigned char **)&str, &sz, (unsigned char *)s, (size_t)Z_STRLEN_P(zendlval));
2583 SET_DOUBLE_QUOTES_SCANNED_LENGTH(YYCURSOR - SCNG(yy_text) - yyleng);
2585 YYCURSOR = SCNG(yy_text) + yyleng;
2627 zend_ptr_stack_push(&SCNG(heredoc_label_stack), (void *) heredoc_label);
2664 if (is_heredoc && !SCNG(heredoc_scan_ahead)) {
2673 SCNG(heredoc_scan_ahead) = 1;
2674 SCNG(heredoc_indentation) = 0;
2675 SCNG(heredoc_indentation_uses_spaces) = 0;
2716 ) && SCNG(heredoc_indentation)) {
2717 … body indentation level (expecting an indentation level of at least %d)", SCNG(heredoc_indentation…
2721 heredoc_label->indentation = SCNG(heredoc_indentation);
2722 heredoc_label->indentation_uses_spaces = SCNG(heredoc_indentation_uses_spaces);
2725 SCNG(heredoc_scan_ahead) = 0;
2745 zend_heredoc_label *heredoc_label = zend_ptr_stack_pop(&SCNG(heredoc_label_stack));
2820 yyleng = YYCURSOR - SCNG(yy_text);
2866 yyleng = YYCURSOR - SCNG(yy_text);
2878 zend_heredoc_label *heredoc_label = zend_ptr_stack_top(&SCNG(heredoc_label_stack));
2908 yyleng = YYCURSOR - SCNG(yy_text);
2937 if (SCNG(heredoc_scan_ahead)) {
2938 SCNG(heredoc_indentation) = indentation;
2939 SCNG(heredoc_indentation_uses_spaces) = (spacing == HEREDOC_USING_SPACES);
2974 yyleng = YYCURSOR - SCNG(yy_text);
2977 if (!SCNG(heredoc_scan_ahead) && !EG(exception) && PARSER_MODE()) {
3002 zend_heredoc_label *heredoc_label = zend_ptr_stack_top(&SCNG(heredoc_label_stack));
3032 yyleng = YYCURSOR - SCNG(yy_text);
3075 yyleng = YYCURSOR - SCNG(yy_text);
3112 if (SCNG(on_event)) {
3113 SCNG(on_event)(ON_TOKEN, token, start_line, yytext, yyleng, SCNG(on_event_context));
3119 elem->ident = SCNG(yy_text);
3121 if (SCNG(on_event)) {
3122 SCNG(on_event)(ON_TOKEN, token, start_line, yytext, yyleng, SCNG(on_event_context));
3128 if (SCNG(on_event)) {
3129 SCNG(on_event)(ON_TOKEN, T_WHITESPACE, start_line, yytext, yyleng, SCNG(on_event_context));
3139 if (SCNG(on_event)) {
3140 SCNG(on_event)(ON_TOKEN, token, start_line, yytext, yyleng, SCNG(on_event_context));