php_xlswriter.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /*
  2. +----------------------------------------------------------------------+
  3. | XlsWriter Extension |
  4. +----------------------------------------------------------------------+
  5. | Copyright (c) 2017-2018 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 "xlswriter.h"
  15. extern zend_module_entry xlswriter_module_entry;
  16. #define phpext_xlswriter_ptr &xlswriter_module_entry
  17. #define PHP_XLSWRITER_VERSION "1.2.8"
  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. #if PHP_VERSION_ID >= 80000
  29. #define TSRMLS_D void
  30. #define TSRMLS_DC
  31. #define TSRMLS_C
  32. #define TSRMLS_CC
  33. #endif
  34. #define VTIFUL_RESOURCE_NAME "xlsx"
  35. extern int le_xls_writer;
  36. #define VTIFUL_STARTUP_MODULE(module) ZEND_MODULE_STARTUP_N(xlsxwriter_##module)(INIT_FUNC_ARGS_PASSTHRU)
  37. #define VTIFUL_STARTUP_FUNCTION(module) ZEND_MINIT_FUNCTION(xlsxwriter_##module)
  38. void _php_vtiful_xls_close(zend_resource *rsrc TSRMLS_DC);
  39. #if defined(ZTS) && defined(COMPILE_DL_VTIFUL)
  40. ZEND_TSRMLS_CACHE_EXTERN();
  41. #endif
  42. PHP_MINIT_FUNCTION(xlswriter);
  43. PHP_MSHUTDOWN_FUNCTION(xlswriter);
  44. PHP_RINIT_FUNCTION(xlswriter);
  45. PHP_RSHUTDOWN_FUNCTION(xlswriter);
  46. PHP_MINFO_FUNCTION(xlswriter);
  47. #endif
  48. /*
  49. * Local variables:
  50. * tab-width: 4
  51. * c-basic-offset: 4
  52. * End:
  53. * vim600: noet sw=4 ts=4 fdm=marker
  54. * vim<600: noet sw=4 ts=4
  55. */