diff options
author | Zeev Suraski <zeev@php.net> | 2000-10-29 14:35:34 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2000-10-29 14:35:34 +0000 |
commit | 7b0d92dd1886678b0c13749be40fad111456066d (patch) | |
tree | feebcd2657ec4ece42d0a6b9a92d7b4a8a9be5d6 /Zend/zend_language_scanner.h | |
parent | 19dad410ec11b60d3d3841bac07684fdb5b79a13 (diff) | |
download | php-git-7b0d92dd1886678b0c13749be40fad111456066d.tar.gz |
Unify the names of these last 3 files...
Diffstat (limited to 'Zend/zend_language_scanner.h')
-rw-r--r-- | Zend/zend_language_scanner.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/Zend/zend_language_scanner.h b/Zend/zend_language_scanner.h new file mode 100644 index 0000000000..e6e2f12f95 --- /dev/null +++ b/Zend/zend_language_scanner.h @@ -0,0 +1,56 @@ +/* + +----------------------------------------------------------------------+ + | Zend Engine | + +----------------------------------------------------------------------+ + | Copyright (c) 1998-2000 Zend Technologies Ltd. (http://www.zend.com) | + +----------------------------------------------------------------------+ + | This source file is subject to version 0.92 of the Zend license, | + | that is bundled with this package in the file LICENSE, and is | + | available at through the world-wide-web at | + | http://www.zend.com/license/0_92.txt. | + | If you did not receive a copy of the Zend license and are unable to | + | obtain it through the world-wide-web, please send a note to | + | license@zend.com so we can mail you a copy immediately. | + +----------------------------------------------------------------------+ + | Authors: Andi Gutmans <andi@zend.com> | + | Zeev Suraski <zeev@zend.com> | + +----------------------------------------------------------------------+ +*/ + + +#ifndef ZEND_SCANNER_H +#define ZEND_SCANNER_H + +#ifdef ZTS +class ZendFlexLexer : public yyFlexLexer +{ +public: + virtual ~ZendFlexLexer(); + int lex_scan(zval *zendlval CLS_DC); + void BeginState(int state); +}; + +#endif /* ZTS */ + + +typedef struct _zend_lex_state { +#ifndef ZTS + YY_BUFFER_STATE buffer_state; + int state; + FILE *in; +#else + ZendFlexLexer *ZFL; + istream *input_file; +#endif + uint lineno; + char *filename; +} zend_lex_state; + + +void zend_fatal_scanner_error(char *); +inline void restore_lexical_state(zend_lex_state * CLS_DC); +BEGIN_EXTERN_C() +int zend_compare_file_handles(zend_file_handle *fh1, zend_file_handle *fh2); +END_EXTERN_C() + +#endif |