summaryrefslogtreecommitdiffstats
path: root/Include/import.h
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2004-10-07 06:46:25 (GMT)
committerRaymond Hettinger <python@rcn.com>2004-10-07 06:46:25 (GMT)
commitdb29e0fe8cab58c68d1263487ba5bac7b99c7612 (patch)
tree8ca6ad43fa5c3b9878ccf022f7161be0b6ba8b5e /Include/import.h
parentfb09f0e85cd75ec46700562687a9da3063ff0b7c (diff)
downloadcpython-db29e0fe8cab58c68d1263487ba5bac7b99c7612.zip
cpython-db29e0fe8cab58c68d1263487ba5bac7b99c7612.tar.gz
cpython-db29e0fe8cab58c68d1263487ba5bac7b99c7612.tar.bz2
SF patch #1035498: -m option to run a module as a script
(Contributed by Nick Coghlan.)
Diffstat (limited to 'Include/import.h')
-rw-r--r--Include/import.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/import.h b/Include/import.h
index c2c869e..9f1c2be 100644
--- a/Include/import.h
+++ b/Include/import.h
@@ -21,6 +21,10 @@ PyAPI_FUNC(PyObject *) PyImport_ReloadModule(PyObject *m);
PyAPI_FUNC(void) PyImport_Cleanup(void);
PyAPI_FUNC(int) PyImport_ImportFrozenModule(char *);
+PyAPI_FUNC(struct filedescr *) _PyImport_FindModule(
+ const char *, PyObject *, char *, size_t, FILE **, PyObject **);
+PyAPI_FUNC(int) _PyImport_IsScript(struct filedescr *);
+
PyAPI_FUNC(PyObject *)_PyImport_FindExtension(char *, char *);
PyAPI_FUNC(PyObject *)_PyImport_FixupExtension(char *, char *);