Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | This construct doens't work on MSVC |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | core-8-branch |
Files: | files | file ages | folders |
SHA3-256: |
4f36f76a21d81619d4d6452f76f31069 |
User & Date: | jan.nijtmans 2024-04-27 11:58:12 |
Context
2024-04-27
| ||
17:26 | Fix clang warning: tclWinTime.c:84:6: error: suggest braces around initialization of subobject [-Wer... check-in: 240572962a user: jan.nijtmans tags: core-8-branch | |
17:11 | This construct doens't work on MSVC check-in: 6c824b0137 user: jan.nijtmans tags: trunk, main | |
11:58 | This construct doens't work on MSVC check-in: 4f36f76a21 user: jan.nijtmans tags: core-8-branch | |
2024-04-26
| ||
12:59 | Fix [1e48483c8b]: Use of non-standard C code in TCLBOOLWARNING check-in: b43de757cc user: jan.nijtmans tags: core-8-branch | |
Changes
Changes to generic/tclDecls.h.
︙ | ︙ | |||
4345 4346 4347 4348 4349 4350 4351 | #define Tcl_GetString(objPtr) \ Tcl_GetStringFromObj(objPtr, NULL) #define Tcl_GetUnicode(objPtr) \ Tcl_GetUnicodeFromObj(objPtr, NULL) #undef Tcl_GetIndexFromObjStruct #undef Tcl_GetBooleanFromObj #undef Tcl_GetBoolean | | | 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 | #define Tcl_GetString(objPtr) \ Tcl_GetStringFromObj(objPtr, NULL) #define Tcl_GetUnicode(objPtr) \ Tcl_GetUnicodeFromObj(objPtr, NULL) #undef Tcl_GetIndexFromObjStruct #undef Tcl_GetBooleanFromObj #undef Tcl_GetBoolean #if !defined(__cplusplus) && !defined(BUILD_tcl) && !defined(BUILD_tk) && !defined(_MSC_VER) # define TCLBOOLWARNING(boolPtr) (void)(sizeof(struct {_Static_assert(sizeof(*(boolPtr)) <= sizeof(int), "sizeof(boolPtr) too large");int dummy;})), #elif defined(__GNUC__) /* If this gives: "error: size of array ‘_boolVar’ is negative", it means that sizeof(*boolPtr)>sizeof(int), which is not allowed */ # define TCLBOOLWARNING(boolPtr) ({__attribute__((unused)) char _bool_Var[sizeof(*(boolPtr)) > sizeof(int) ? -1 : 1];}), #else # define TCLBOOLWARNING(boolPtr) #endif |
︙ | ︙ |