Skip to content

Commit e786d4d

Browse files
committed
Let's not introduce more mess to maintain.
1 parent 05db76d commit e786d4d

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

main/php.h

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -228,31 +228,6 @@ char *strerror(int);
228228
#define PHP_RSHUTDOWN_FUNCTION(module) int PHP_RSHUTDOWN(module)(SHUTDOWN_FUNC_ARGS)
229229
#define PHP_MINFO_FUNCTION(module) void PHP_MINFO(module)(ZEND_MODULE_INFO_FUNC_ARGS)
230230

231-
#define PHP_BEGIN_MODULE_GLOBALS(module_name) \
232-
typedef struct _php_##module_name##_globals {
233-
#define PHP_END_MODULE_GLOBALS(module_name) \
234-
} php_##module_name##_globals;
235-
236-
#ifdef ZTS
237-
238-
#define PHP_DECLARE_MODULE_GLOBALS(module_name) \
239-
ts_rsrc_id module_name##_globals_id;
240-
#define PHP_EXTERN_MODULE_GLOBALS(module_name) \
241-
extern ts_rsrc_id module_name##_globals_id;
242-
#define PHP_INIT_MODULE_GLOBALS(module_name, globals_ctor, globals_dtor) \
243-
ts_allocate_id(&module_name##_globals_id, sizeof(php_##module_name##_globals), (ts_allocate_ctor) globals_ctor, (ts_allocate_dtor) globals_dtor);
244-
245-
#else
246-
247-
#define PHP_DECLARE_MODULE_GLOBALS(module_name) \
248-
php_##module_name##_globals module_name##_globals;
249-
#define PHP_EXTERN_MODULE_GLOBALS(module_name) \
250-
extern php_##module_name##_globals module_name##_globals;
251-
#define PHP_INIT_MODULE_GLOBALS(module_name, globals_ctor, globals_dtor) \
252-
globals_ctor(&module_name##_globals);
253-
254-
#endif
255-
256231
/* global variables */
257232
extern pval *data;
258233
#if !defined(PHP_WIN32)

0 commit comments

Comments
 (0)