You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
2.0 KiB

25 years ago
25 years ago
25 years ago
  1. /*
  2. +----------------------------------------------------------------------+
  3. | PHP Version 4 |
  4. +----------------------------------------------------------------------+
  5. | Copyright (c) 1997-2002 The PHP Group |
  6. +----------------------------------------------------------------------+
  7. | This source file is subject to version 2.02 of the PHP license, |
  8. | that is bundled with this package in the file LICENSE, and is |
  9. | available at through the world-wide-web at |
  10. | http://www.php.net/license/2_02.txt. |
  11. | If you did not receive a copy of the PHP license and are unable to |
  12. | obtain it through the world-wide-web, please send a note to |
  13. | license@php.net so we can mail you a copy immediately. |
  14. +----------------------------------------------------------------------+
  15. | Author: Andrei Zmievski <andrei@php.net> |
  16. +----------------------------------------------------------------------+
  17. */
  18. #ifndef PHP_OVERLOAD_H
  19. #define PHP_OVERLOAD_H
  20. #ifndef ZEND_ENGINE_2
  21. #if HAVE_OVERLOAD
  22. extern zend_module_entry overload_module_entry;
  23. #define phpext_overload_ptr &overload_module_entry
  24. #ifdef PHP_WIN32
  25. #define PHP_OVERLOAD_API __declspec(dllexport)
  26. #else
  27. #define PHP_OVERLOAD_API
  28. #endif
  29. #ifdef ZTS
  30. #include "TSRM.h"
  31. #endif
  32. PHP_MINIT_FUNCTION(overload);
  33. PHP_MSHUTDOWN_FUNCTION(overload);
  34. PHP_RSHUTDOWN_FUNCTION(overload);
  35. PHP_MINFO_FUNCTION(overload);
  36. PHP_FUNCTION(overload);
  37. ZEND_BEGIN_MODULE_GLOBALS(overload)
  38. HashTable overloaded_classes;
  39. ZEND_END_MODULE_GLOBALS(overload)
  40. #ifdef ZTS
  41. #define OOG(v) TSRMG(overload_globals_id, zend_overload_globals *, v)
  42. #else
  43. #define OOG(v) (overload_globals.v)
  44. #endif
  45. #endif /* HAVE_OVERLOAD */
  46. #endif /* ZEND_ENGINE_2 */
  47. #endif /* PHP_OVERLOAD_H */
  48. /*
  49. * Local variables:
  50. * tab-width: 4
  51. * c-basic-offset: 4
  52. * indent-tabs-mode: t
  53. * End:
  54. */