php_excel_writer.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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 excel_writer_module_entry;
  15. #define phpext_excel_writer_ptr &excel_writer_module_entry
  16. #define PHP_EXCEL_WRITER_VERSION "1.0.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_excel_writer;
  29. #define VTIFUL_STARTUP_MODULE(module) ZEND_MODULE_STARTUP_N(excel_writer_##module)(INIT_FUNC_ARGS_PASSTHRU)
  30. #define VTIFUL_STARTUP_FUNCTION(module) ZEND_MINIT_FUNCTION(excel_writer_##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. PHP_MINIT_FUNCTION(excel_writer);
  37. PHP_MSHUTDOWN_FUNCTION(excel_writer);
  38. PHP_RINIT_FUNCTION(excel_writer);
  39. PHP_RSHUTDOWN_FUNCTION(excel_writer);
  40. PHP_MINFO_FUNCTION(excel_writer);
  41. #endif
  42. /*
  43. * Local variables:
  44. * tab-width: 4
  45. * c-basic-offset: 4
  46. * End:
  47. * vim600: noet sw=4 ts=4 fdm=marker
  48. * vim<600: noet sw=4 ts=4
  49. */