Timeline
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

About branch c11-printf-result

This is based on the much wider changes in the c-std-update branch.

This uses C11 variadic macros to create especially TclPrintfResult(), which gives us back approximately the feeling of doing sprintf(interp->result, ...) from Tcl 7, except now in a Tcl_Obj-safe way. It's been used in this branch almost entirely for handling errors, which are typically not regarded as performance-critical.

This is a feature that is recommended for adoption. We may want to promote TclPrintfResult() to the public API; it requires no new functions, as it is only a source-level feature. That is out of scope of this branch.

10 check-ins related to "c11-printf-result"
2025-11-09
14:12
merge trunk Leaf check-in: c495403a16 user: dkf tags: c11-printf-result
09:57
Merge 9.0. Bug [cb03e57a] - raise error on empty regexp for unresolved variable. check-in: 2ab1a13679 user: apnadkarni tags: trunk, main
2025-10-06
11:12
tidy up a bit more check-in: 576b4f39f2 user: dkf tags: c11-printf-result
10:50
Tidying up check-in: fafb320167 user: dkf tags: c11-printf-result
08:31
Adoption of TclAppendPrintfToErrorInfo check-in: e3a772f56c user: dkf tags: c11-printf-result
2025-10-05
19:26
Tranche 3 of adoption of TclPrintfResult check-in: 3aa1ace500 user: dkf tags: c11-printf-result
10:38
Tranche 2 of adoption of TclPrintfResult check-in: 9a6fb43196 user: dkf tags: c11-printf-result
2025-10-04
11:12
Tranche 1 of adoption of TclPrintfResult check-in: 4bd77df23d user: dkf tags: c11-printf-result
2025-10-03
16:42
Define macros for printing to the result conveniently check-in: 7b73f4ae3a user: dkf tags: c11-printf-result
11:47
Merge 9.0 check-in: 1e07ca757f user: jan.nijtmans tags: trunk, main