rl_json
rl_json copied to clipboard
Fix compile errors, merge enhancements into main branch
parser.c
In TCL8 the function Tcl_SetObjResult seems not to support 64bit integers, split the compile path to support both TCL8 and TCL9
rl_json.c
Use function Tcl_GetWideIntFromObj to support 64bit integers
rl_jsonInt.h
Since libtommath is not needed, put the include into the CBOR clause
rl_jsonStubInit.c
Syntax error in element JSON_Valid (forgot the comma)
tip445.h
Since the compiler flag -Werror=unused-function is set, the function Tcl_InitStringRep generates an error because it is nowhere used. As a workaround hide this function from build and make the tip445.h local - should be fixed in the submodule.
Already from pervious pull requests:
The new function autoarray guesses the values type and creates an array. autoarray.test has been added.
The function pretty takes -array, -nopadding and -indent options. pretty.test has been enhanced.
parse_args is not really needed for the tests. Simplify.