diff options
author | Zeev Suraski <zeev@php.net> | 1999-04-24 00:12:00 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 1999-04-24 00:12:00 +0000 |
commit | 0818d96c97ceec4dbb8251c5220a2fdcdf39f355 (patch) | |
tree | c56f529e445e4bee928e7c28e0ccbb7f67572f16 /main/php.h | |
parent | 05d24c60223439b94d4100538331fb6749022ca3 (diff) | |
download | php-git-0818d96c97ceec4dbb8251c5220a2fdcdf39f355.tar.gz |
A lot of cleanups... Removed old thread-safe code and other redundant code and files
Diffstat (limited to 'main/php.h')
-rw-r--r-- | main/php.h | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/main/php.h b/main/php.h index 835a93f111..1d66a43a85 100644 --- a/main/php.h +++ b/main/php.h @@ -117,43 +117,10 @@ extern unsigned char second_arg_allow_ref[]; # endif #endif -/*Thread Safety*/ -#if THREAD_SAFE -#define GLOBAL(a) php3_globals->a -#define STATIC GLOBAL -#define TLS_VARS \ - php3_globals_struct *php3_globals; \ - php3_globals = TlsGetValue(TlsIndex); -#define CREATE_MUTEX(a,b) a = CreateMutex (NULL, FALSE, b); -#define SET_MUTEX(a) WaitForSingleObject( a, INFINITE ); -#define FREE_MUTEX(a) ReleaseMutex(a); - -/*redirect variables to the flex structure*/ -#if !defined(YY_BUFFER_NEW) && !defined(COMPILE_DL) -#include "FlexSafe.h" -#endif - -#define INLINE_TLS ,struct php3_global_struct *php3_globals -#define INLINE_TLS_VOID struct php3_global_struct *php3_globals -#define _INLINE_TLS ,php3_globals -#define _INLINE_TLS_VOID php3_globals - -#else -#define GLOBAL(a) a -#define STATIC GLOBAL -#define TLS_VARS #define CREATE_MUTEX(a,b) #define SET_MUTEX(a) #define FREE_MUTEX(a) -/* needed in control structures */ -#define INLINE_TLS -#define INLINE_TLS_VOID void -#define _INLINE_TLS -#define _INLINE_TLS_VOID - -#endif - /* * Then the ODBC support can use both iodbc and Solid, * uncomment this. |