[Python-checkins] r88515 - in python/branches/py3k: PC/import_nt.c Python/import.c

victor.stinner python-checkins at python.org
Wed Feb 23 00:12:29 CET 2011


Author: victor.stinner
Date: Wed Feb 23 00:12:28 2011
New Revision: 88515

Log:
Issue #3080: Mark PyWin_FindRegisteredModule() as private

This function was not declared in Python public API (in any .h file) and not
documented. Mark it as private to prepare a change of its API.

Modified:
   python/branches/py3k/PC/import_nt.c
   python/branches/py3k/Python/import.c

Modified: python/branches/py3k/PC/import_nt.c
==============================================================================
--- python/branches/py3k/PC/import_nt.c	(original)
+++ python/branches/py3k/PC/import_nt.c	Wed Feb 23 00:12:28 2011
@@ -15,10 +15,10 @@
 /* a string loaded from the DLL at startup */
 extern const char *PyWin_DLLVersionString;
 
-FILE *PyWin_FindRegisteredModule(const char *moduleName,
-                                 struct filedescr **ppFileDesc,
-                                 char *pathBuf,
-                                 Py_ssize_t pathLen)
+FILE *_PyWin_FindRegisteredModule(const char *moduleName,
+                                  struct filedescr **ppFileDesc,
+                                  char *pathBuf,
+                                  Py_ssize_t pathLen)
 {
     char *moduleKey;
     const char keyPrefix[] = "Software\\Python\\PythonCore\\";

Modified: python/branches/py3k/Python/import.c
==============================================================================
--- python/branches/py3k/Python/import.c	(original)
+++ python/branches/py3k/Python/import.c	Wed Feb 23 00:12:28 2011
@@ -1547,8 +1547,8 @@
    pathname and an open file.  Return NULL if the module is not found. */
 
 #ifdef MS_COREDLL
-extern FILE *PyWin_FindRegisteredModule(const char *, struct filedescr **,
-                                        char *, Py_ssize_t);
+extern FILE *_PyWin_FindRegisteredModule(const char *, struct filedescr **,
+                                         char *, Py_ssize_t);
 #endif
 
 static int case_ok(char *, Py_ssize_t, Py_ssize_t, char *);
@@ -1631,7 +1631,7 @@
             return &fd_builtin;
         }
 #ifdef MS_COREDLL
-        fp = PyWin_FindRegisteredModule(name, &fdp, buf, buflen);
+        fp = _PyWin_FindRegisteredModule(name, &fdp, buf, buflen);
         if (fp != NULL) {
             *p_fp = fp;
             return fdp;


More information about the Python-checkins mailing list