[Python-checkins] CVS: python/dist/src/Include unicodeobject.h,2.3,2.4

Guido van Rossum python-dev@python.org
Mon, 27 Mar 2000 21:01:17 -0500 (EST)


Update of /projects/cvsroot/python/dist/src/Include
In directory eric:/home/guido/hp/mal/py-patched/Include

Modified Files:
	unicodeobject.h 
Log Message:
Prototypes added for MBCS codecs.  (Win32 only.)


Index: unicodeobject.h
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Include/unicodeobject.h,v
retrieving revision 2.3
retrieving revision 2.4
diff -C2 -r2.3 -r2.4
*** unicodeobject.h	2000/03/20 16:36:22	2.3
--- unicodeobject.h	2000/03/28 02:01:15	2.4
***************
*** 562,565 ****
--- 562,585 ----
      );
  
+ #ifdef MS_WIN32
+ /* --- MBCS codecs for Windows -------------------------------------------- */
+ extern DL_IMPORT(PyObject*) PyUnicode_DecodeMBCS(
+     const char *string,         /* MBCS encoded string */
+     int length,                 /* size of string */
+     const char *errors          /* error handling */
+     );
+ 
+ extern DL_IMPORT(PyObject*) PyUnicode_AsMBCSString(
+     PyObject *unicode           /* Unicode object */
+     );
+ 
+ extern DL_IMPORT(PyObject*) PyUnicode_EncodeMBCS(
+     const Py_UNICODE *data,     /* Unicode char buffer */
+     int length,                 /* Number of Py_UNICODE chars to encode */
+     const char *errors          /* error handling */
+     );
+ 
+ 
+ #endif /* MS_WIN32 */
  /* --- Methods & Slots ----------------------------------------------------