Skip to content
Tcl Source Code Changes To branch/c-std-update
Login

Changes To branch/c-std-update

Changes to "branch/c-std-update" between 2025-11-17 14:15:32 and 2025-11-17 14:18:19

1
2
3

4
5
6
7
8
9
10
1
2

3
4
5
6
7
8
9
10


-
+







This branch is looking at the things we can do by adopting C11 features (as opposed to just C89) more consistently.

The following branches (organised by enabling underlying language feature) are _derived_ from this one:
The following branches (organised by enabling underlying language feature) are (mostly) _derived_ from this one. They're organised by the basic underlying enabling feature of C11 that permits them:

* __Feature: Anonymous Structure Members__
  * [`c11-anon-members`](https://core.tcl-lang.org/tcl/timeline?r=c11-anon-members)
* __Feature: Booleans__
  * [`c11-bool`](https://core.tcl-lang.org/tcl/timeline?r=c11-bool)
* __Feature: Comments with //__
  * There is no branch for changing comment styles (`/* ... */` to `// ...`); we _can,_ but it makes no sense to prioritise doing so at all and it makes only the smallest of readability difference. Change when it makes sense to do it as part of some other activity, not before. (Note however that this comment style has been sneaking into Tcl for some time; it crops up in quite a few places in the 9.0 codebase.)
︙
29
30
31
32
33
34
35



29
30
31
32
33
34
35
36
37
38







+
+
+
* __Feature: Varargs Macros__
  * [`c11-automarker`](https://core.tcl-lang.org/tcl/timeline?r=c11-automarker)
  * [`c11-printf-result`](https://core.tcl-lang.org/tcl/timeline?r=c11-printf-result)
  * [`c11-tebc-trace-cleanup`](https://core.tcl-lang.org/tcl/timeline?r=c11-tebc-trace-cleanup) ✓
  * [`c11-varargs-nr-add-callback`](https://core.tcl-lang.org/tcl/timeline?r=c11-varargs-nr-add-callback)
* __Feature: Variable Length Arrays__
  * Not recommended for use. Compiler support is far too patchy and we explicitly don't want to stress the C stack.


Note! None of these changes are altering the public API (or ABI) of Tcl. It is our intention to keep that working with a wider range of C versions, as well as with C++ and Objective-C (either of which may be used internally by Tk).