Skip to content
Tcl Source Code Artifact [20deb4dd2c]
Login

Artifact [20deb4dd2c]

Artifact 20deb4dd2cbf0ae0625f3712171b169c34135cca3a7c82754937bb60e82cd916:

Wiki page [branch/c-std-update] by dkf on 2025-11-17 09:33:24.
D 2025-11-17T09:33:24.647
L branch/c-std-update
N text/x-markdown
P c6ac0dda8fd6e7d786c4771c0a90577dbaf46e250e923b716ad9280571e7be0f
U dkf
W 2158
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:

* __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.)
* __Feature: Flexible Variable Declarations__
  * [`c11-tcloo-foreach`](https://core.tcl-lang.org/tcl/timeline?r=c11-tcloo-foreach)
     * [`c11-full-hash-foreach`](https://core.tcl-lang.org/tcl/timeline?r=c11-full-hash-foreach) (extended version)
  * Moving variable declarations around inside functions isn't very high value and yet is *very* noisy. Outside of doing things like making iteration neater (in the branches above, where the demonstrated gains are stronger), it's not worth putting a lot of effort into specifically, but can easily be done incrementally as part of other work.
* __Feature: Type-Generic Functions__
  * [`c11-generic-oo-api`](https://core.tcl-lang.org/tcl/timeline?r=c11-generic-oo-api)
* __Feature: Non-Constant Array Values__
  * [`c11-array-literals`](https://core.tcl-lang.org/tcl/timeline?r=c11-array-literals)
* __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)

Z 71d11e04f9ee7aa94aa63cef7f5460eb