php_vtiful.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. #define VTIFUL_RESOURCE_NAME "vtiful"
  28. extern int le_vtiful;
  29. #define VTIFUL_STARTUP_MODULE(module) ZEND_MODULE_STARTUP_N(vtiful_##module)(INIT_FUNC_ARGS_PASSTHRU)
  30. #define VTIFUL_STARTUP_FUNCTION(module) ZEND_MINIT_FUNCTION(vtiful_##module)
  31. #define VTIFUL_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(vtiful, v)
  32. void _php_vtiful_excel_close(zend_resource *rsrc TSRMLS_DC);
  33. #if defined(ZTS) && defined(COMPILE_DL_VTIFUL)
  34. ZEND_TSRMLS_CACHE_EXTERN();
  35. #endif
  36. #endif
  37. /*
  38. * Local variables:
  39. * tab-width: 4
  40. * c-basic-offset: 4
  41. * End:
  42. * vim600: noet sw=4 ts=4 fdm=marker
  43. * vim<600: noet sw=4 ts=4
  44. */