summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc-André Lemburg <mal@egenix.com>2005-10-19 22:39:02 (GMT)
committerMarc-André Lemburg <mal@egenix.com>2005-10-19 22:39:02 (GMT)
commit5c4a9d65910e05c4381f96e6af56ee2743abd0d5 (patch)
tree0d79c2d40c42dca3b1edb477a25f4f156e0903c2
parente115ec832c8ba6f184a78b0565736298338da61a (diff)
downloadcpython-5c4a9d65910e05c4381f96e6af56ee2743abd0d5.zip
cpython-5c4a9d65910e05c4381f96e6af56ee2743abd0d5.tar.gz
cpython-5c4a9d65910e05c4381f96e6af56ee2743abd0d5.tar.bz2
Whitespace corrections.
-rw-r--r--Objects/unicodeobject.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 9a28c56..10ac80c 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -850,7 +850,7 @@ char utf7_special[128] = {
#define SPECIAL(c, encodeO, encodeWS) \
((c) > 127 || (c) <= 0 || utf7_special[(c)] == 1 || \
- (encodeWS && (utf7_special[(c)] == 2)) || \
+ (encodeWS && (utf7_special[(c)] == 2)) || \
(encodeO && (utf7_special[(c)] == 3)))
#define B64(n) \
@@ -861,29 +861,29 @@ char utf7_special[128] = {
((c) == '+' ? 62 : (c) == '/' ? 63 : (c) >= 'a' ? \
(c) - 71 : (c) >= 'A' ? (c) - 65 : (c) + 4 )
-#define ENCODE(out, ch, bits) \
- while (bits >= 6) { \
- *out++ = B64(ch >> (bits-6)); \
- bits -= 6; \
+#define ENCODE(out, ch, bits) \
+ while (bits >= 6) { \
+ *out++ = B64(ch >> (bits-6)); \
+ bits -= 6; \
}
-#define DECODE(out, ch, bits, surrogate) \
- while (bits >= 16) { \
- Py_UNICODE outCh = (Py_UNICODE) ((ch >> (bits-16)) & 0xffff); \
- bits -= 16; \
- if (surrogate) { \
+#define DECODE(out, ch, bits, surrogate) \
+ while (bits >= 16) { \
+ Py_UNICODE outCh = (Py_UNICODE) ((ch >> (bits-16)) & 0xffff); \
+ bits -= 16; \
+ if (surrogate) { \
/* We have already generated an error for the high surrogate \
so let's not bother seeing if the low surrogate is correct or not */ \
- surrogate = 0; \
- } else if (0xDC00 <= outCh && outCh <= 0xDFFF) { \
+ surrogate = 0; \
+ } else if (0xDC00 <= outCh && outCh <= 0xDFFF) { \
/* This is a surrogate pair. Unfortunately we can't represent \
- it in a 16-bit character */ \
- surrogate = 1; \
- errmsg = "code pairs are not supported"; \
- goto utf7Error; \
- } else { \
- *out++ = outCh; \
- } \
+ it in a 16-bit character */ \
+ surrogate = 1; \
+ errmsg = "code pairs are not supported"; \
+ goto utf7Error; \
+ } else { \
+ *out++ = outCh; \
+ } \
}
PyObject *PyUnicode_DecodeUTF7(const char *s,