-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathphp_json_post.h
66 lines (55 loc) · 1.76 KB
/
php_json_post.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/*
+--------------------------------------------------------------------+
| PECL :: json_post |
+--------------------------------------------------------------------+
| Redistribution and use in source and binary forms, with or without |
| modification, are permitted provided that the conditions mentioned |
| in the accompanying LICENSE file are met. |
+--------------------------------------------------------------------+
| Copyright (c) 2015, Michael Wallner <mike@php.net> |
+--------------------------------------------------------------------+
*/
#ifndef PHP_JSON_POST_H
#define PHP_JSON_POST_H
extern zend_module_entry json_post_module_entry;
#define phpext_json_post_ptr &json_post_module_entry
#define PHP_JSON_POST_VERSION "1.1.0"
#ifdef PHP_WIN32
# define PHP_JSON_POST_API __declspec(dllexport)
#elif defined(__GNUC__) && __GNUC__ >= 4
# define PHP_JSON_POST_API extern __attribute__ ((visibility("default")))
#else
# define PHP_JSON_POST_API extern
#endif
#ifdef ZTS
# include "TSRM.h"
#endif
#if PHP_VERSION_ID < 70000
typedef long zend_long;
#endif
ZEND_BEGIN_MODULE_GLOBALS(json_post)
zend_long flags;
struct {
zend_long response;
zend_bool warning;
zend_bool exit;
} onerror;
#if PHP_VERSION_ID < 70000
zend_module_entry *json_module;
#endif
ZEND_END_MODULE_GLOBALS(json_post)
ZEND_EXTERN_MODULE_GLOBALS(json_post);
#ifdef ZTS
# define JSON_POST_G(v) TSRMG(json_post_globals_id, zend_json_post_globals *, v)
#else
# define JSON_POST_G(v) (json_post_globals.v)
#endif
#endif /* PHP_JSON_POST_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
*/