Tags and Properties for Check-in 31e633f6ad
- bgcolor cancelled by [47749a12d8] on 2012-12-23 13:14:07
- branch=trunk propagates to descendants added by [bbf3775730] on 2012-12-26 09:29:28
- closed cancelled by [47749a12d8] on 2012-12-23 13:14:07
- 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. added by [47749a12d8] on 2012-12-23 13:14:07
- sym-mistake cancelled by [47749a12d8] on 2012-12-23 13:14:07
- sym-trunk propagates to descendants added by [bbf3775730] on 2012-12-26 09:29:28
Context
|
2012-12-26
| ||
| 09:29 | • Edit [31e633f6ad]: Move to branch [/timeline?r=trunk&nd&dp=31e633f6adedccdb&unhide ... artifact: bbf3775730 user: jan.nijtmans | |
|
2012-12-23
| ||
| 13:14 | • Edit [31e633f6ad]: Edit check-in comment. Cancel background color. Remove the "Clos... artifact: 47749a12d8 user: dkf | |
| 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 | |