php_xlswriter.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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.3.7"
  18. #define PHP_XLSWRITER_AUTHOR "Jiexing.Wang ([email protected])"
  19. #ifdef PHP_WIN32
  20. # define PHP_VTIFUL_API __declspec(dllexport)
  21. #elif defined(__GNUC__) && __GNUC__ >= 4
  22. # define PHP_VTIFUL_API __attribute__ ((visibility("default")))
  23. #else
  24. # define PHP_VTIFUL_API
  25. #endif
  26. #ifdef ZTS
  27. #include "TSRM.h"
  28. #endif
  29. #if PHP_VERSION_ID >= 80000
  30. #define TSRMLS_D void
  31. #define TSRMLS_DC
  32. #define TSRMLS_C
  33. #define TSRMLS_CC
  34. #endif
  35. #define VTIFUL_RESOURCE_NAME "xlsx"
  36. extern int le_xls_writer;
  37. #define VTIFUL_STARTUP_MODULE(module) ZEND_MODULE_STARTUP_N(xlsxwriter_##module)(INIT_FUNC_ARGS_PASSTHRU)
  38. #define VTIFUL_STARTUP_FUNCTION(module) ZEND_MINIT_FUNCTION(xlsxwriter_##module)
  39. void _php_vtiful_xls_close(zend_resource *rsrc TSRMLS_DC);
  40. #if defined(ZTS) && defined(COMPILE_DL_VTIFUL)
  41. ZEND_TSRMLS_CACHE_EXTERN();
  42. #endif
  43. PHP_MINIT_FUNCTION(xlswriter);
  44. PHP_MSHUTDOWN_FUNCTION(xlswriter);
  45. PHP_RINIT_FUNCTION(xlswriter);
  46. PHP_RSHUTDOWN_FUNCTION(xlswriter);
  47. PHP_MINFO_FUNCTION(xlswriter);
  48. #endif
  49. /*
  50. * Local variables:
  51. * tab-width: 4
  52. * c-basic-offset: 4
  53. * End:
  54. * vim600: noet sw=4 ts=4 fdm=marker
  55. * vim<600: noet sw=4 ts=4
  56. */