diff options
author | Petri Lehtinen <petri@digip.org> | 2009-09-12 12:49:17 +0300 |
---|---|---|
committer | Petri Lehtinen <petri@digip.org> | 2009-09-13 13:16:34 +0300 |
commit | 743af38e7f2453bb90190433b1c05615eed6d747 (patch) | |
tree | 4dbbb1d50e683b07448b3cddab0ed3caa578913c /doc | |
parent | 9d16ec755c9754fe1f79fe55ab719a7f8578ce37 (diff) | |
download | jansson-743af38e7f2453bb90190433b1c05615eed6d747.zip jansson-743af38e7f2453bb90190433b1c05615eed6d747.tar.gz jansson-743af38e7f2453bb90190433b1c05615eed6d747.tar.bz2 |
Use unsigned long instead of uint32_t
Some day we will have ANSI C compatibility... This change doesn't make
the API backwards incompatible because uint32_t was only used in flags
to json_dump*() and the flags are meant to be used only by ORing
constants and macro output, and actually currently only JSON_INDENT
can be used.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/apiref.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/apiref.rst b/doc/apiref.rst index dc82527..8623623 100644 --- a/doc/apiref.rst +++ b/doc/apiref.rst @@ -392,18 +392,18 @@ can be ORed together to obtain *flags*. The following functions perform the actual JSON encoding. The result is in UTF-8. -.. cfunction:: char *json_dumps(const json_t *root, uint32_t flags) +.. cfunction:: char *json_dumps(const json_t *root, unsigned long flags) Returns the JSON representation of *root* as a string, or *NULL* on error. *flags* is described above. The return value must be freed by the caller using :cfunc:`free()`. -.. cfunction:: int json_dumpf(const json_t *root, FILE *output, uint32_t flags) +.. cfunction:: int json_dumpf(const json_t *root, FILE *output, unsigned long flags) Write the JSON representation of *root* to the stream *output*. *flags* is described above. Returns 0 on success and -1 on error. -.. cfunction:: int json_dump_file(const json_t *json, const char *path, uint32_t flags) +.. cfunction:: int json_dump_file(const json_t *json, const char *path, unsigned long flags) Write the JSON representation of *root* to the file *path*. If *path* already exists, it is overwritten. *flags* is described |