2 Star 4 Fork 0

fang.liu / php_segmentation

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
php_segmentation.h 2.44 KB
一键复制 编辑 原始数据 按行查看 历史
fang.liu 提交于 2015-03-12 00:05 . 头文件修正
/*
+----------------------------------------------------------------------+
| PHP Version 7 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2015 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| http://www.php.net/license/3_01.txt |
| If you did not receive a copy of the PHP license and are unable to |
| obtain it through the world-wide-web, please send a note to |
| license@php.net so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Author: fang.liu <i@liufang.org.cn> |
+----------------------------------------------------------------------+
*/
/* $Id$ */
#ifndef PHP_SEGMENTATION_H
#define PHP_SEGMENTATION_H
#include "segmentation/segmentation.h"
extern zend_module_entry segmentation_module_entry;
#define phpext_segmentation_ptr &segmentation_module_entry
#define PHP_SEGMENTATION_VERSION "0.1.0" /* Replace with version number for your extension */
#ifdef PHP_WIN32
# define PHP_SEGMENTATION_API __declspec(dllexport)
#elif defined(__GNUC__) && __GNUC__ >= 4
# define PHP_SEGMENTATION_API __attribute__ ((visibility("default")))
#else
# define PHP_SEGMENTATION_API
#endif
#ifdef ZTS
#include "TSRM.h"
#endif
/*
Declare any global variables you may need between the BEGIN
and END macros here:
*/
ZEND_BEGIN_MODULE_GLOBALS(segmentation)
char *word_file;
ZEND_END_MODULE_GLOBALS(segmentation)
/* Always refer to the globals in your function as SEGMENTATION_G(variable).
You are encouraged to rename these macros something shorter, see
examples in any other php module directory.
*/
#ifdef ZTS
#define SEGMENTATION_G(v) ZEND_TSRMG(segmentation_globals_id, zend_segmentation_globals *, v)
#ifdef COMPILE_DL_SEGMENTATION
ZEND_TSRMLS_CACHE_EXTERN();
#endif
#else
#define SEGMENTATION_G(v) (segmentation_globals.v)
#endif
#endif /* PHP_SEGMENTATION_H */
/*
* Local variables:
* tab-width: 4
* c-basic-offset: 4
* End:
* vim600: noet sw=4 ts=4 fdm=marker
* vim<600: noet sw=4 ts=4
*/
C
1
https://gitee.com/fang/php_segmentation.git
git@gitee.com:fang/php_segmentation.git
fang
php_segmentation
php_segmentation
master

搜索帮助