diff Python/import.c @ 68107:2f89cbbec0b4

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.
author Victor Stinner <victor.stinner@haypocalc.com>
date Tue, 22 Feb 2011 23:12:28 +0000
parents 62b61abd02b8
children 44cc9ef43127
line wrap: on
line diff
--- a/Python/import.c	Tue Feb 22 21:55:51 2011 +0000
+++ b/Python/import.c	Tue Feb 22 23:12:28 2011 +0000
@@ -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;