Commit e22d410
committed
zic now uses is_digit
Refactor zic.c to use is_digit like others use.
* zic.c (is_digit): New static function, copied from
localtime.c and from zdump.c.
It’s too bad we can’t avoid duplication by putting this into
private.h, because gcc -Wunused-function would then complain about it.
Perhaps ‘inline’ would pacify gcc but then we’d have to port ‘inline’
to ancient compilers and anyway ‘inline’ is supposed to be just a
performance hint which is not needed here.1 parent f57cadd commit e22d410
1 file changed
+9
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
232 | 239 | | |
233 | 240 | | |
234 | 241 | | |
| |||
1852 | 1859 | | |
1853 | 1860 | | |
1854 | 1861 | | |
1855 | | - | |
| 1862 | + | |
1856 | 1863 | | |
1857 | 1864 | | |
1858 | 1865 | | |
| |||
3952 | 3959 | | |
3953 | 3960 | | |
3954 | 3961 | | |
3955 | | - | |
| 3962 | + | |
3956 | 3963 | | |
3957 | 3964 | | |
3958 | 3965 | | |
| |||
0 commit comments