Tcl Source Code: Changes To branch/c-std-update

Changes to "branch/c-std-update" between 2025-11-21 14:40:31 and 2025-12-29 17:10:44

︙
10
11
12
13
14
15
16



17
18
19
20
21
22
23
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26







+
+
+







  * 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: Inline Functions__
  * Widely used in Tcl for many years.
* __Feature: New Math Functions__
  * Some are already in Tcl 9.0
  * [`c11-functions`](https://core.tcl-lang.org/tcl/timeline?r=c11-functions)
* __Feature: New Types__
  * We ought to support `<stdint.h>` more, especially in `tclLink.c`. (This would also be a good opportunity for using type-generic trickery.)
  * We can ignore complex numbers entirely; we were doing that already anyway.
  * The alignment type `max_align_t` would be useful, but isn't supported by MSVC for obscure reasons.
* __Feature: Type-Generic Functions__
  * [`c11-generic-oo-api`](https://core.tcl-lang.org/tcl/timeline?r=c11-generic-oo-api); _public API change._
  * This would be a useful thing to use with `tclLink.c`; that's also a public API change.
︙