Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 74 lines (61 sloc) 2.434 kB
573b460 @andigutmans Zend Library
andigutmans authored
1 /*
2 +----------------------------------------------------------------------+
3 | Zend Engine |
4 +----------------------------------------------------------------------+
927bf09 @felipensp - Year++
felipensp authored
5 | Copyright (c) 1998-2011 Zend Technologies Ltd. (http://www.zend.com) |
573b460 @andigutmans Zend Library
andigutmans authored
6 +----------------------------------------------------------------------+
d863d52 Update headers.
Sebastian Bergmann authored
7 | This source file is subject to version 2.00 of the Zend license, |
b5b1117 @zsuraski License update
zsuraski authored
8 | that is bundled with this package in the file LICENSE, and is |
f68c7ff updating license information in the headers.
James Cox authored
9 | available through the world-wide-web at the following url: |
d863d52 Update headers.
Sebastian Bergmann authored
10 | http://www.zend.com/license/2_00.txt. |
b5b1117 @zsuraski License update
zsuraski authored
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. |
573b460 @andigutmans Zend Library
andigutmans authored
14 +----------------------------------------------------------------------+
15 | Authors: Andi Gutmans <andi@zend.com> |
16 | Zeev Suraski <zeev@zend.com> |
17 +----------------------------------------------------------------------+
18 */
19
333406b - Added some missing CVS $Id$ tags, headers and footers.
foobar authored
20 /* $Id$ */
b5b1117 @zsuraski License update
zsuraski authored
21
a617217 Replace macros which begin with an underscore through an appropiately
Sascha Schumann authored
22 #ifndef ZEND_SCANNER_H
23 #define ZEND_SCANNER_H
573b460 @andigutmans Zend Library
andigutmans authored
24
1250c43 @zsuraski * Add struct name to all typedef's so that they can be debugged with …
zsuraski authored
25 typedef struct _zend_lex_state {
af31602 - Rewrite scanner to be based on re2c instead of flex
Marcus Boerger authored
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
e52aac9 @wez Implement simple stream support in the ZE scanners.
wez authored
35 zend_file_handle *in;
7957b20 @zsuraski Fix filenames and line numbers in ZTS mode
zsuraski authored
36 uint lineno;
37 char *filename;
c3286f3 implemented again zend-multibyte for PHP 5.3
Rui Hirokawa authored
38
39 #ifdef ZEND_MULTIBYTE
40 /* original (unfiltered) script */
4f42ed3 - Revived zend multibyte
Moriyoshi Koizumi authored
41 unsigned char *script_org;
42 size_t script_org_size;
c3286f3 implemented again zend-multibyte for PHP 5.3
Rui Hirokawa authored
43
44 /* filtered script */
4f42ed3 - Revived zend multibyte
Moriyoshi Koizumi authored
45 unsigned char *script_filtered;
46 size_t script_filtered_size;
c3286f3 implemented again zend-multibyte for PHP 5.3
Rui Hirokawa authored
47
48 /* input/ouput filters */
49 zend_encoding_filter input_filter;
50 zend_encoding_filter output_filter;
51 zend_encoding *script_encoding;
52 zend_encoding *internal_encoding;
53 #endif /* ZEND_MULTIBYTE */
7957b20 @zsuraski Fix filenames and line numbers in ZTS mode
zsuraski authored
54 } zend_lex_state;
55
573b460 @andigutmans Zend Library
andigutmans authored
56
fdcaba4 @zsuraski Solve a couple of compile issues
zsuraski authored
57 BEGIN_EXTERN_C()
9353650 Fix warnings surfacing in maintainer-mode.
Stig S. Bakken authored
58 int zend_compare_file_handles(zend_file_handle *fh1, zend_file_handle *fh2);
43617d0 @zsuraski MFZE1
zsuraski authored
59 ZEND_API void zend_save_lexical_state(zend_lex_state *lex_state TSRMLS_DC);
60 ZEND_API void zend_restore_lexical_state(zend_lex_state *lex_state TSRMLS_DC);
61 ZEND_API int zend_prepare_string_for_scanning(zval *str, char *filename TSRMLS_DC);
e69f4f6 @andigutmans - This should fix the problem of conditional function decleration on the
andigutmans authored
62
fdcaba4 @zsuraski Solve a couple of compile issues
zsuraski authored
63 END_EXTERN_C()
9353650 Fix warnings surfacing in maintainer-mode.
Stig S. Bakken authored
64
573b460 @andigutmans Zend Library
andigutmans authored
65 #endif
333406b - Added some missing CVS $Id$ tags, headers and footers.
foobar authored
66
67 /*
68 * Local variables:
69 * tab-width: 4
70 * c-basic-offset: 4
71 * indent-tabs-mode: t
72 * End:
73 */
Something went wrong with that request. Please try again.