]> granicus.if.org Git - python/commitdiff
Issue #3080: Mark PyWin_FindRegisteredModule() as private
authorVictor Stinner <victor.stinner@haypocalc.com>
Tue, 22 Feb 2011 23:12:28 +0000 (23:12 +0000)
committerVictor Stinner <victor.stinner@haypocalc.com>
Tue, 22 Feb 2011 23:12:28 +0000 (23:12 +0000)
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.

PC/import_nt.c
Python/import.c

index 196a774af35eb1e81596e7afa39ef04e7257ccc6..aa99c43709b1adc3f574e433733a5626cb6d8921 100644 (file)
 /* 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\\";
index 23752eeb720c0e7da562c5f63e3028eb70fd2102..f4015b52faaea0959d807e0c38179aa0fb963519 100644 (file)
@@ -1547,8 +1547,8 @@ PyImport_GetImporter(PyObject *path) {
    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 @@ find_module(char *fullname, char *subname, PyObject *path, char *buf,
             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;