mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
CJK codecs: less magical macros, semicolon is now explicit
This commit is contained in:
parent
14c9fea60a
commit
28c63f7ffb
8 changed files with 115 additions and 101 deletions
|
|
@ -113,8 +113,11 @@ static const struct dbcs_map *mapping_list;
|
|||
} while (0)
|
||||
|
||||
#define REQUIRE_INBUF(n) \
|
||||
if (inleft < (n)) \
|
||||
return MBERR_TOOFEW;
|
||||
do { \
|
||||
if (inleft < (n)) \
|
||||
return MBERR_TOOFEW; \
|
||||
} while (0)
|
||||
|
||||
#define REQUIRE_OUTBUF(n) \
|
||||
do { \
|
||||
if (outleft < (n)) \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue