-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
39 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,12 @@ | |
#ifndef PHP_JSONNET_H | ||
#define PHP_JSONNET_H | ||
|
||
#ifdef HAVE_CONFIG_H | ||
#include "config.h" | ||
#endif | ||
|
||
#include "include/Jsonnet.h" | ||
|
||
extern zend_module_entry jsonnet_module_entry; | ||
#define phpext_jsonnet_ptr &jsonnet_module_entry | ||
|
||
|
@@ -17,15 +23,6 @@ extern zend_module_entry jsonnet_module_entry; | |
#include "TSRM.h" | ||
#endif | ||
|
||
#define JSONNET_RES_NAME "JsonNet" | ||
#define JSONNET_PHP_VERSION "v1.2.0" | ||
#define JSONNET_PHP_AUTHOR "Chitao.Gao [ [email protected] ]" | ||
|
||
#define SL_S(s) s, sizeof(s) - 1 | ||
|
||
#define CODE_SUCCESS 1000 | ||
#define CODE_ERROR 900 | ||
|
||
PHP_MINIT_FUNCTION(jsonnet); | ||
PHP_MSHUTDOWN_FUNCTION(jsonnet); | ||
PHP_RINIT_FUNCTION(jsonnet); | ||
|