Add a flags parameter to all decoding functions for future needs

As of now, the parameter is unused, but may be needed in the future.
I'm adding it now so that in the future both API and ABI remain
backwards compatible as long as possible.

This is a backwards incompatible change.
This commit is contained in:
Petri Lehtinen
2010-08-13 22:19:20 +03:00
parent f8d0e01e46
commit bfac1972e2
9 changed files with 29 additions and 24 deletions

View File

@@ -117,7 +117,7 @@ int main(int argc, char *argv[])
if(!text)
return 1;
root = json_loads(text, &error);
root = json_loads(text, 0, &error);
free(text);
if(!root)