Mercurial > cpython-lru_cache-weakref
comparison Python/codecs.c @ 73351:2bec7c452b39
Fix C89 incompatibility.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Fri, 04 Nov 2011 12:26:49 +0100 |
| parents | 0883d6a103a0 |
| children | 2df7d749ee3a |
comparison
equal
deleted
inserted
replaced
| 73350:0883d6a103a0 | 73351:2bec7c452b39 |
|---|---|
| 611 return NULL; | 611 return NULL; |
| 612 } | 612 } |
| 613 outp = PyUnicode_1BYTE_DATA(res); | 613 outp = PyUnicode_1BYTE_DATA(res); |
| 614 /* generate replacement */ | 614 /* generate replacement */ |
| 615 for (i = start, o = 0; i < end; ++i) { | 615 for (i = start, o = 0; i < end; ++i) { |
| 616 ch = PyUnicode_READ_CHAR(object, i); | |
| 617 int digits; | 616 int digits; |
| 618 int base; | 617 int base; |
| 618 ch = PyUnicode_READ_CHAR(object, i); | |
| 619 *outp++ = '&'; | 619 *outp++ = '&'; |
| 620 *outp++ = '#'; | 620 *outp++ = '#'; |
| 621 if (ch<10) { | 621 if (ch<10) { |
| 622 digits = 1; | 622 digits = 1; |
| 623 base = 1; | 623 base = 1; |
