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-15 22:13:31 and 2025-11-17 09:33:24

1
2
3

4

5
6
7
8
9
10
11
12
13
14


















15
16
17
18
1
2

3
4
5










6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23






-
+

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

The following branches are _derived_ from this one:
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)
* [`c11-array-literals`](https://core.tcl-lang.org/tcl/timeline?r=c11-array-literals)
* [`c11-automarker`](https://core.tcl-lang.org/tcl/timeline?r=c11-automarker)
* [`c11-bool`](https://core.tcl-lang.org/tcl/timeline?r=c11-bool)
* [`c11-generic-oo-api`](https://core.tcl-lang.org/tcl/timeline?r=c11-generic-oo-api)
* [`c11-printf-result`](https://core.tcl-lang.org/tcl/timeline?r=c11-printf-result)
* [`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)
* [`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)
  * [`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)

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.

Similarly, moving variable declarations around inside functions isn't very high value and yet is *very* noisy. Outside of doing things like making iteration neater (where 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.