Skip to content
Tcl Source Code Timeline
Login

Timeline

About branch c-std-update

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 (mostly) derived from this one. They're organised by the basic underlying enabling feature of C11 that permits them:

  • Feature: Anonymous Structure Members
  • Feature: Booleans
  • 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
    • 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
  • 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; public API change.
    • This would be a useful thing to use with tclLink.c; that's also a public API change.
  • Feature: Non-Constant Compound Values
  • Feature: Restrict Qualification of Function Arguments
    • Compilers tend to handle most of our functions by assuming restriction based on argument types. There's a few places it might be worthwhile.)
    • c11-restrict
  • Feature: Varargs Macros
  • 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).

49 check-ins related to "c-std-update"
2025-11-15
21:56
merge trunk leaf check-in: 459669e809 user: dkf tags: c-std-update
14:01
Create an enum from some related defines check-in: dcbfbb03e5 user: dkf tags: trunk, main
2025-10-06
12:05
merge trunk check-in: dce49c4e92 user: dkf tags: c-std-update
11:06
merge 9.0 (simplify TclGrowParseTokenArray) check-in: ae278f257d user: dkf tags: trunk, main
2025-09-27
08:29
Fix errors from merge check-in: de99b4dd08 user: dkf tags: c-std-update
2025-09-26
18:53
merge trunk check-in: f0dcb3e615 user: dkf tags: c-std-update
2025-09-25
14:03
merge 9.0 check-in: e360c5a082 user: sebres tags: trunk, main
2025-08-17
16:09
merge trunk check-in: 4a7b1f9d1b user: dkf tags: c-std-update
11:25
More bools and pieces check-in: 28a7d957c7 user: dkf tags: c-std-update
2025-08-15
21:25
Merge 9.0 check-in: e42f382022 user: jan.nijtmans tags: trunk, main
2025-08-12
14:14
Yet more booleans check-in: 98c372af54 user: dkf tags: c-std-update
10:16
merge trunk check-in: 1ea33fb12b user: dkf tags: c-std-update
09:28
Merge 9.0 check-in: 4405794cf5 user: jan.nijtmans tags: trunk, main
09:06
More booleans. check-in: 8a9080996d user: dkf tags: c-std-update
2025-08-06
09:34
merge trunk check-in: d41ff65d5d user: dkf tags: c-std-update
09:30
Factor out a common pattern to aid comprehensibility check-in: ed1c7df566 user: dkf tags: trunk, main
09:25
Start to use the real bool type. check-in: 3dc71d011c user: dkf tags: c-std-update
2025-08-04
16:34
merge trunk check-in: 8a202d8d1b user: dkf tags: c-std-update
16:05
merge 9.0 (fix for [5137b4387019d0e1]) check-in: 7f3a21a465 user: sebres tags: trunk, main
08:48
More moving of variable declarations check-in: 48e5ad480b user: dkf tags: c-std-update
2025-08-01
11:54
merge trunk check-in: 8d8ea7cf3a user: dkf tags: c-std-update
11:48
More moving of variable declarations check-in: 1d20e4cf45 user: dkf tags: c-std-update
2025-07-30
18:36
merge release check-in: 2f42adf522 user: dgp tags: trunk, main
2025-07-19
12:31
More moving of variable declarations check-in: c149575323 user: dkf tags: c-std-update
2025-07-16
10:43
Moving variable declarations to better places check-in: f569640c35 user: dkf tags: c-std-update
2025-07-15
15:04
merge trunk check-in: 64fb4b537d user: dkf tags: c-std-update
13:33
Better handling of the expectations around channel names check-in: 7293896dad user: dkf tags: c-std-update
09:03
Move declarations into FOREACH-related constructs... where possible check-in: 91dddca8bc user: dkf tags: c-std-update
09:01
Channel names can be NULL during closing check-in: 675f1a34ac user: dkf tags: c-std-update
02:31
Fix [25265a2705] - dup test names in listTypes.test check-in: dd11259884 user: apnadkarni tags: trunk, main
2025-07-14
14:58
Use macros to reduce number of explicit marker NULLs check-in: 2b21439624 user: dkf tags: c-std-update
14:26
TclSetErrorCode lets us avoid writing a lot of marker values check-in: a29f1f8fab user: dkf tags: c-std-update
08:44
merge trunk check-in: c2c0fa07ea user: dkf tags: c-std-update
08:11
A bunch of small changes building on previous commits check-in: 1811f74742 user: dkf tags: c-std-update
2025-07-13
08:30
Doc update. See [8cd74c5cd2] check-in: 038e022dbf user: jan.nijtmans tags: trunk, main
07:03
Define TclAppendPrintfToErrorInfo for a related pattern check-in: 321d2b5cd3 user: dkf tags: c-std-update
2025-07-12
20:58
Define TclPrintfResult() for common pattern in error generation. check-in: 70b6205548 user: dkf tags: c-std-update
2025-07-11
13:46
merge trunk check-in: c43800c51a user: dkf tags: c-std-update
13:45
Rewrite interpreted [try] to use more efficient internal data model. check-in: 9a9b3fc6f8 user: dkf tags: c-std-update
2025-07-10
21:52
More of the new C11 array declarations. check-in: 9e916964ee user: dkf tags: c-std-update
21:12
Clearer declarations of many C arrays; C11 lets the initialisers be expressions check-in: 63912394cf user: dkf tags: c-std-update
11:50
Some int -> Tcl_Size modifications, and type-cast changes, which were missed up to now. check-in: ccf01b5339 user: jan.nijtmans tags: trunk, main
2025-07-03
13:30
TEBC TRACE goes varargs; cut down TclNRAddCallback because function addresses 'are not static consta... check-in: e9c1929632 user: dkf tags: c-std-update
2025-07-02
20:34
A few corrections/updates check-in: ddaa63ea6a user: dkf tags: c-std-update
20:31
merge trunk check-in: b013256012 user: dkf tags: c-std-update
2025-07-01
07:55
[0cb3d93a] fix example in link documentation check-in: 4625e86c2e user: oehhar tags: trunk, main
2025-06-20
13:15
Give each TSD struct its own name as well as the standard ThreadSpecificData check-in: 8d695d0eb6 user: dkf tags: c-std-update
08:19
Corrections/improvements to use of C standard capabilities; TclNRAddCallback now requires non-NULL c... check-in: 0ae4935331 user: dkf tags: c-std-update
2025-06-19
14:08
Move general variable compiler to file where it makes sense check-in: 2996bce5c9 user: dkf tags: trunk, main