php_excel_writer.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. #include "kernel/include.h"
  15. extern zend_module_entry excel_writer_module_entry;
  16. #define phpext_excel_writer_ptr &excel_writer_module_entry
  17. #define PHP_EXCEL_WRITER_VERSION "1.0.0"
  18. #ifdef PHP_WIN32
  19. # define PHP_VTIFUL_API __declspec(dllexport)
  20. #elif defined(__GNUC__) && __GNUC__ >= 4
  21. # define PHP_VTIFUL_API __attribute__ ((visibility("default")))
  22. #else
  23. # define PHP_VTIFUL_API
  24. #endif
  25. #ifdef ZTS
  26. #include "TSRM.h"
  27. #endif
  28. #define VTIFUL_RESOURCE_NAME "vtiful"
  29. extern int le_excel_writer;
  30. #define VTIFUL_STARTUP_MODULE(module) ZEND_MODULE_STARTUP_N(excel_writer_##module)(INIT_FUNC_ARGS_PASSTHRU)
  31. #define VTIFUL_STARTUP_FUNCTION(module) ZEND_MINIT_FUNCTION(excel_writer_##module)
  32. #define VTIFUL_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(vtiful, v)
  33. void _php_vtiful_excel_close(zend_resource *rsrc TSRMLS_DC);
  34. #if defined(ZTS) && defined(COMPILE_DL_VTIFUL)
  35. ZEND_TSRMLS_CACHE_EXTERN();
  36. #endif
  37. PHP_MINIT_FUNCTION(excel_writer);
  38. PHP_MSHUTDOWN_FUNCTION(excel_writer);
  39. PHP_RINIT_FUNCTION(excel_writer);
  40. PHP_RSHUTDOWN_FUNCTION(excel_writer);
  41. PHP_MINFO_FUNCTION(excel_writer);
  42. #endif
  43. /*
  44. * Local variables:
  45. * tab-width: 4
  46. * c-basic-offset: 4
  47. * End:
  48. * vim600: noet sw=4 ts=4 fdm=marker
  49. * vim<600: noet sw=4 ts=4
  50. */