php_vtiful.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. +----------------------------------------------------------------------+
  3. | Vtiful Extension |
  4. +----------------------------------------------------------------------+
  5. | Copyright (c) 2017-2017 The Viest |
  6. +----------------------------------------------------------------------+
  7. | http://www.viest.me |
  8. +----------------------------------------------------------------------+
  9. | Author: viest <[email protected]> |
  10. +----------------------------------------------------------------------+
  11. */
  12. #ifndef PHP_VTIFUL_H
  13. #define PHP_VTIFUL_H
  14. extern zend_module_entry vtiful_module_entry;
  15. #define phpext_vtiful_ptr &vtiful_module_entry
  16. #define PHP_VTIFUL_VERSION "0.1.0"
  17. #ifdef PHP_WIN32
  18. # define PHP_VTIFUL_API __declspec(dllexport)
  19. #elif defined(__GNUC__) && __GNUC__ >= 4
  20. # define PHP_VTIFUL_API __attribute__ ((visibility("default")))
  21. #else
  22. # define PHP_VTIFUL_API
  23. #endif
  24. #ifdef ZTS
  25. #include "TSRM.h"
  26. #endif
  27. static int le_vtiful;
  28. #define VTIFUL_STARTUP_MODULE(module) ZEND_MODULE_STARTUP_N(vtiful_##module)(INIT_FUNC_ARGS_PASSTHRU)
  29. #define VTIFUL_STARTUP_FUNCTION(module) ZEND_MINIT_FUNCTION(vtiful_##module)
  30. #define VTIFUL_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(vtiful, v)
  31. static void _php_vtiful_excel_close(zend_resource *rsrc TSRMLS_DC);
  32. #if defined(ZTS) && defined(COMPILE_DL_VTIFUL)
  33. ZEND_TSRMLS_CACHE_EXTERN();
  34. #endif
  35. #endif
  36. /*
  37. * Local variables:
  38. * tab-width: 4
  39. * c-basic-offset: 4
  40. * End:
  41. * vim600: noet sw=4 ts=4 fdm=marker
  42. * vim<600: noet sw=4 ts=4
  43. */