summaryrefslogtreecommitdiffstats
path: root/Modules/cjkcodecs/multibytecodec.h
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2013-10-28 23:19:27 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2013-10-28 23:19:27 (GMT)
commit14c9fea60aa6884586c0a87046b308c2af76d38d (patch)
tree81c61ca9de204a341e7b1e21b4ffa11bb4785e81 /Modules/cjkcodecs/multibytecodec.h
parent146a2ed0f29a338abe7ea954604ee0f68b35c37f (diff)
downloadcpython-14c9fea60aa6884586c0a87046b308c2af76d38d.zip
cpython-14c9fea60aa6884586c0a87046b308c2af76d38d.tar.gz
cpython-14c9fea60aa6884586c0a87046b308c2af76d38d.tar.bz2
CJK codecs: less magic macros, require explicit semicolon
Diffstat (limited to 'Modules/cjkcodecs/multibytecodec.h')
-rw-r--r--Modules/cjkcodecs/multibytecodec.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/Modules/cjkcodecs/multibytecodec.h b/Modules/cjkcodecs/multibytecodec.h
index 7cde8e3..5b8c222 100644
--- a/Modules/cjkcodecs/multibytecodec.h
+++ b/Modules/cjkcodecs/multibytecodec.h
@@ -118,11 +118,11 @@ typedef struct {
#define ERROR_IGNORE (PyObject *)(2)
#define ERROR_REPLACE (PyObject *)(3)
#define ERROR_ISCUSTOM(p) ((p) < ERROR_STRICT || ERROR_REPLACE < (p))
-#define ERROR_DECREF(p) do { \
- if (p != NULL && ERROR_ISCUSTOM(p)) { \
- Py_DECREF(p); \
- } \
-} while (0);
+#define ERROR_DECREF(p) \
+ do { \
+ if (p != NULL && ERROR_ISCUSTOM(p)) \
+ Py_DECREF(p); \
+ } while (0);
#define MBENC_FLUSH 0x0001 /* encode all characters encodable */
#define MBENC_MAX MBENC_FLUSH