1 /* 2 +----------------------------------------------------------------------+ 3 | PHP Version 5 and 7 | 4 +----------------------------------------------------------------------+ 5 | Copyright (c) 1997-2004 The PHP Group | 6 +----------------------------------------------------------------------+ 7 | This source file is subject to version 3.0 of the PHP 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.php.net/license/3_0.txt. | 11 | If you did not receive a copy of the PHP license and are unable to | 12 | obtain it through the world-wide-web, please send a note to | 13 | license@php.net so we can mail you a copy immediately. | 14 +----------------------------------------------------------------------+ 15 | Author: Michael Spector <michael@php.net> | 16 +----------------------------------------------------------------------+ 17 */ 18 19 /* $ Id: $ */ 20 21 #ifndef PHP_EXPECT_H 22 #define PHP_EXPECT_H 23 24 #ifdef HAVE_CONFIG_H 25 #include "config.h" 26 #endif 27 28 #include <php.h> 29 #include <php_ini.h> 30 #include <SAPI.h> 31 #include <ext/standard/info.h> 32 33 #include <tcl.h> 34 #include <expect_tcl.h> 35 #include <expect.h> 36 37 extern zend_module_entry expect_module_entry; 38 #define phpext_expect_ptr &expect_module_entry 39 40 #define PHP_EXPECT_VERSION "0.4.0" 41 42 #ifdef PHP_WIN32 43 #define PHP_EXPECT_API __declspec(dllexport) 44 #else 45 #define PHP_EXPECT_API 46 #endif 47 48 PHP_MINIT_FUNCTION(expect); 49 PHP_MSHUTDOWN_FUNCTION(expect); 50 PHP_MINFO_FUNCTION(expect); 51 52 PHP_FUNCTION(expect_popen); 53 PHP_FUNCTION(expect_expectl); 54 55 extern php_stream_wrapper php_expect_wrapper; 56 57 ZEND_BEGIN_MODULE_GLOBALS(expect) 58 php_stream* logfile_stream; 59 ZEND_END_MODULE_GLOBALS(expect) 60 61 #ifdef ZTS 62 #define EXPECT_G(v) TSRMG(expect_globals_id, zend_expect_globals *, v) 63 #else 64 #define EXPECT_G(v) (expect_globals.v) 65 #endif 66 67 #ifdef ZTS 68 #include "TSRM.h" 69 #endif /* ZTS */ 70 71 #endif /* PHP_EXPECT_H */ 72 73 /* 74 * Local variables: 75 * tab-width: 4 76 * c-basic-offset: 4 77 * End: 78 * vim600: noet sw=4 ts=4 fdm=marker 79 * vim<600: noet sw=4 ts=4 80 */ 81