Annotation of embedaddon/php/Zend/zend_language_scanner.h, revision 1.1.1.2
1.1 misho 1: /*
2: +----------------------------------------------------------------------+
3: | Zend Engine |
4: +----------------------------------------------------------------------+
5: | Copyright (c) 1998-2012 Zend Technologies Ltd. (http://www.zend.com) |
6: +----------------------------------------------------------------------+
7: | This source file is subject to version 2.00 of the Zend license, |
8: | that is bundled with this package in the file LICENSE, and is |
9: | available through the world-wide-web at the following url: |
10: | http://www.zend.com/license/2_00.txt. |
11: | If you did not receive a copy of the Zend license and are unable to |
12: | obtain it through the world-wide-web, please send a note to |
13: | license@zend.com so we can mail you a copy immediately. |
14: +----------------------------------------------------------------------+
15: | Authors: Andi Gutmans <andi@zend.com> |
16: | Zeev Suraski <zeev@zend.com> |
17: +----------------------------------------------------------------------+
18: */
19:
1.1.1.2 ! misho 20: /* $Id$ */
1.1 misho 21:
22: #ifndef ZEND_SCANNER_H
23: #define ZEND_SCANNER_H
24:
25: typedef struct _zend_lex_state {
26: unsigned int yy_leng;
27: unsigned char *yy_start;
28: unsigned char *yy_text;
29: unsigned char *yy_cursor;
30: unsigned char *yy_marker;
31: unsigned char *yy_limit;
32: int yy_state;
33: zend_stack state_stack;
34:
35: zend_file_handle *in;
36: uint lineno;
37: char *filename;
38:
39: /* original (unfiltered) script */
40: unsigned char *script_org;
41: size_t script_org_size;
42:
43: /* filtered script */
44: unsigned char *script_filtered;
45: size_t script_filtered_size;
46:
47: /* input/ouput filters */
48: zend_encoding_filter input_filter;
49: zend_encoding_filter output_filter;
1.1.1.2 ! misho 50: const zend_encoding *script_encoding;
1.1 misho 51: } zend_lex_state;
52:
53:
54: BEGIN_EXTERN_C()
55: int zend_compare_file_handles(zend_file_handle *fh1, zend_file_handle *fh2);
56: ZEND_API void zend_save_lexical_state(zend_lex_state *lex_state TSRMLS_DC);
57: ZEND_API void zend_restore_lexical_state(zend_lex_state *lex_state TSRMLS_DC);
58: ZEND_API int zend_prepare_string_for_scanning(zval *str, char *filename TSRMLS_DC);
1.1.1.2 ! misho 59: ZEND_API void zend_multibyte_yyinput_again(zend_encoding_filter old_input_filter, const zend_encoding *old_encoding TSRMLS_DC);
! 60: ZEND_API int zend_multibyte_set_filter(const zend_encoding *onetime_encoding TSRMLS_DC);
1.1 misho 61:
62: END_EXTERN_C()
63:
64: #endif
65:
66: /*
67: * Local variables:
68: * tab-width: 4
69: * c-basic-offset: 4
70: * indent-tabs-mode: t
71: * End:
72: */
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>