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

Jeremy Hylton jhylton@users.sourceforge.net
Mon, 30 Jul 2001 15:34:26 -0700


Update of /cvsroot/python/python/dist/src/Include
In directory usw-pr-cvs1:/tmp/cvs-serv27264/Include

Modified Files:
	unicodeobject.h 
Log Message:
Add _PyUnicode_AsDefaultEncodedString to unicodeobject.h.

And remove all the extern decls in the middle of .c files.
Apparently, it was excluded from the header file because it is
intended for internal use by the interpreter.  It's still intended for
internal use and documented as such in the header file.



Index: unicodeobject.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/unicodeobject.h,v
retrieving revision 2.27
retrieving revision 2.28
diff -C2 -d -r2.27 -r2.28
*** unicodeobject.h	2001/06/27 22:08:26	2.27
--- unicodeobject.h	2001/07/30 22:34:24	2.28
***************
*** 387,390 ****
--- 387,407 ----
  /* --- Manage the default encoding ---------------------------------------- */
  
+ /* Return a Python string holding the default encoded value of the
+    Unicode object. 
+ 
+    The resulting string is cached in the Unicode object for subsequent
+    usage by this function. The cached version is needed to implement
+    the character buffer interface and will live (at least) as long as
+    the Unicode object itself.
+ 
+    The refcount of the string is *not* incremented.
+ 
+    *** Exported for internal use by the interpreter only !!! ***
+ 
+ */
+ 
+ extern DL_IMPORT(PyObject *) _PyUnicode_AsDefaultEncodedString(
+     PyObject *, const char *);
+ 
  /* Returns the currently active default encoding.