Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2)

Unified Diff: Modules/_codecsmodule.c

Issue 10639: reindent.py converts newlines to platform default
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Modules/cjkcodecs/_codecs_tw.c ('k') | Modules/_ctypes/libffi/src/dlmalloc.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Modules/_codecsmodule.c Tue Jul 26 09:37:46 2011 +0300
+++ b/Modules/_codecsmodule.c Mon Jul 25 09:47:18 2011 -0400
@@ -588,7 +588,7 @@
return codec_tuple(unicode, pbuf.len);
}
-#ifdef HAVE_MBCS
+#if defined(MS_WINDOWS) && defined(HAVE_USABLE_WCHAR_T)
static PyObject *
mbcs_decode(PyObject *self,
@@ -613,7 +613,7 @@
return codec_tuple(decoded, consumed);
}
-#endif /* HAVE_MBCS */
+#endif /* MS_WINDOWS */
/* --- Encoder ------------------------------------------------------------ */
@@ -989,7 +989,7 @@
return PyUnicode_BuildEncodingMap(map);
}
-#ifdef HAVE_MBCS
+#if defined(MS_WINDOWS) && defined(HAVE_USABLE_WCHAR_T)
static PyObject *
mbcs_encode(PyObject *self,
@@ -1014,7 +1014,7 @@
return v;
}
-#endif /* HAVE_MBCS */
+#endif /* MS_WINDOWS */
/* --- Error handler registry --------------------------------------------- */
@@ -1101,7 +1101,7 @@
{"charmap_decode", charmap_decode, METH_VARARGS},
{"charmap_build", charmap_build, METH_VARARGS},
{"readbuffer_encode", readbuffer_encode, METH_VARARGS},
-#ifdef HAVE_MBCS
+#if defined(MS_WINDOWS) && defined(HAVE_USABLE_WCHAR_T)
{"mbcs_encode", mbcs_encode, METH_VARARGS},
{"mbcs_decode", mbcs_decode, METH_VARARGS},
#endif
« no previous file with comments | « Modules/cjkcodecs/_codecs_tw.c ('k') | Modules/_ctypes/libffi/src/dlmalloc.c » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+