Skip to content
Tcl Source Code Timeline
Login

Timeline

About branch c11-restrict

This is based on the much wider changes in the c-std-update branch. Or would be except those never touched restrict.

For the most part, it's OUT (or IN/OUT) parameters (or technically pointers to them) that are marked as restrict because we really assume they don't alias nastily. A number of functions in our public API ought to also be so marked on an appropriate argument, especially Tcl_GetWideIntFromObj() and so on; it's typically pretty obvious what ought to have the treatment. If we were doing it properly, almost every instance of a Tcl_Interp* argument would be restrict, but the usual TBAA rules of modern compilers are good enough.

3 check-ins related to "c11-restrict"
2025-11-21
14:19
Yet more restrict of arguments leaf check-in: 0549feab22 user: dkf tags: c11-restrict
2025-11-18
17:15
Work in progress: adding restrict to OUT arguments check-in: f9725400dd user: dkf tags: c11-restrict
2025-11-17
10:29
Merge 9.0. Fix type of dstLen in Encoding.3 check-in: a91ff21071 user: apnadkarni tags: trunk, main