Overview
| Comment: | Change back to using an isDigit function. We simply don't need to make any (formally non-portable) assumptions about what happens when an unsigned zero is decremented, and the code isn't in a performance-critical area. Remark by jan.nijtmans: The macro is perfectly portable! Not portable is the exact result of the substraction ('\xB0' - '0' might give 0x80 on some platforms and 0xffffff80 on others), but comparing <= 9 always gives the correct result. We are only checking for digits here! The macro correctly inlines with any compiler, so it's better anyway. Remark by dkf: But it's less clear. In this code, that's more important than a teeny bit of speed from inlining in a non-critical location. |
|---|---|
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
31e633f6adedccdba61daf85e35d1ecd |
| User & Date: | dkf on 2012-12-23 08:17:17.853 |
| Original Comment: | Change back to using an isDigit function. We simply don't need to make any (formally non-portable) assumptions about what happens when an unsigned zero is decremented, and the code isn't in a performance-critical area. |
| Other Links: | manifest | tags |
Context
|
2012-12-26
| ||
| 09:59 | eliminate dependancy of compat/*.h on tcl.h check-in: 1a74bb2740 user: jan.nijtmans tags: trunk | |
|
2012-12-23
| ||
| 08:18 | merge trunk check-in: c5680da39e user: dkf tags: dkf-bytecode-8.6-main | |
| 08:17 | Change back to using an isDigit function. We simply don't need to make any (formally non-portable) ... check-in: 31e633f6ad user: dkf tags: trunk | |
|
2012-12-22
| ||
| 19:05 | Stop leaking allocated space when objifying a zero-length DString. [Bug 3598150] spotted by afredd. check-in: c384751ee6 user: ferrieux tags: trunk | |
Changes
Modified generic/tclStubLib.c
from [1b31b21955]
to [741da2698d].
[diff]