diff options
author | Zeev Suraski <zeev@php.net> | 2001-07-27 10:08:26 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2001-07-27 10:08:26 +0000 |
commit | 736b4ae43d3f37fda450f6fcd67286a3bfed4fb6 (patch) | |
tree | 05cc11d28835918ac295cdfe41ad4ff0e22179b8 /TSRM/tsrm_win32.c | |
parent | e280c3e555bc98a1264d38deac88bee7f707fbb3 (diff) | |
download | php-git-736b4ae43d3f37fda450f6fcd67286a3bfed4fb6.tar.gz |
- Prepare for optimization - use a single fetch for multiple resources
- Clean a bit
Diffstat (limited to 'TSRM/tsrm_win32.c')
-rw-r--r-- | TSRM/tsrm_win32.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/TSRM/tsrm_win32.c b/TSRM/tsrm_win32.c index 5a7a916302..7a1554afbd 100644 --- a/TSRM/tsrm_win32.c +++ b/TSRM/tsrm_win32.c @@ -36,14 +36,14 @@ static ts_rsrc_id win32_globals_id; static tsrm_win32_globals win32_globals; #endif -static void tsrm_win32_ctor(tsrm_win32_globals *globals) +static void tsrm_win32_ctor(tsrm_win32_globals *globals TSRMLS_DC) { globals->process = NULL; globals->process_size = 0; globals->comspec = _strdup((GetVersion()<0x80000000)?"cmd.exe":"command.com"); } -static void tsrm_win32_dtor(tsrm_win32_globals *globals) +static void tsrm_win32_dtor(tsrm_win32_globals *globals TSRMLS_DC) { if (globals->process != NULL) { free(globals->process); @@ -54,16 +54,16 @@ static void tsrm_win32_dtor(tsrm_win32_globals *globals) TSRM_API void tsrm_win32_startup(void) { #ifdef ZTS - win32_globals_id = ts_allocate_id(sizeof(tsrm_win32_globals), (ts_allocate_ctor)tsrm_win32_ctor, (ts_allocate_ctor)tsrm_win32_dtor); + ts_allocate_id(&win32_globals_id, sizeof(tsrm_win32_globals), (ts_allocate_ctor)tsrm_win32_ctor, (ts_allocate_ctor)tsrm_win32_dtor); #else - tsrm_win32_ctor(&win32_globals); + tsrm_win32_ctor(&win32_globals TSRMLS_CC); #endif } TSRM_API void tsrm_win32_shutdown(void) { #ifndef ZTS - tsrm_win32_dtor(&win32_globals); + tsrm_win32_dtor(&win32_globals TSRMLS_CC); #endif } |