Skip to content

Make compile clean for TCL 90#55

Open
teclabat wants to merge 33 commits intoRubyLane:masterfrom
teclabat:wip
Open

Make compile clean for TCL 90#55
teclabat wants to merge 33 commits intoRubyLane:masterfrom
teclabat:wip

Conversation

@teclabat
Copy link

@teclabat teclabat commented Nov 12, 2025

For 90 there is mainly the change from int -> Tcl_Size
This version now compiles clean for Tcl 8 and 9, all tests pass

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.

@teclabat teclabat changed the title Fix compile errors, merge enhancements into main branch Make compile clean for TCL 90 Feb 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant