You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.8 KiB

  1. /*
  2. +----------------------------------------------------------------------+
  3. | PHP Version 5 |
  4. +----------------------------------------------------------------------+
  5. | Copyright (c) 1997-2006 The PHP Group |
  6. +----------------------------------------------------------------------+
  7. | This source file is subject to version 3.01 of the PHP license, |
  8. | that is bundled with this package in the file LICENSE, and is |
  9. | available through the world-wide-web at the following url: |
  10. | http://www.php.net/license/3_01.txt |
  11. | If you did not receive a copy of the PHP license and are unable to |
  12. | obtain it through the world-wide-web, please send a note to |
  13. | license@php.net so we can mail you a copy immediately. |
  14. +----------------------------------------------------------------------+
  15. | Author: Omar Kilani <omar@php.net> |
  16. +----------------------------------------------------------------------+
  17. */
  18. /* $Id$ */
  19. #ifndef PHP_JSON_H
  20. #define PHP_JSON_H
  21. #define PHP_JSON_VERSION "1.2.1"
  22. extern zend_module_entry json_module_entry;
  23. #define phpext_json_ptr &json_module_entry
  24. #ifdef PHP_WIN32
  25. #define PHP_JSON_API __declspec(dllexport)
  26. #else
  27. #define PHP_JSON_API
  28. #endif
  29. #ifdef ZTS
  30. #include "TSRM.h"
  31. #endif
  32. PHP_MINFO_FUNCTION(json);
  33. PHP_FUNCTION(json_encode);
  34. PHP_FUNCTION(json_decode);
  35. #ifdef ZTS
  36. #define JSON_G(v) TSRMG(json_globals_id, zend_json_globals *, v)
  37. #else
  38. #define JSON_G(v) (json_globals.v)
  39. #endif
  40. #endif /* PHP_JSON_H */
  41. /*
  42. * Local variables:
  43. * tab-width: 4
  44. * c-basic-offset: 4
  45. * End:
  46. * vim600: noet sw=4 ts=4 fdm=marker
  47. * vim<600: noet sw=4 ts=4
  48. */