annotate Include/import.h @ 27998:e27f58a50737 legacy-trunk

SF bug #690377: Dud footnote reference in distutils docs
author Raymond Hettinger <python@rcn.com>
date Fri, 21 Feb 2003 02:47:09 +0000
parents 36e2fd3f08f7
children bcafb68ad985
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
145
853b736a6a9e Added copyright notice.
Guido van Rossum <guido@python.org>
parents: 86
diff changeset
1
6
fc6fcd7df4f7 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
2 /* Module definition and import interface */
fc6fcd7df4f7 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
3
13443
7e58c060d534 ANSI-fication and Py_PROTO extermination.
Fred Drake <fdrake@acm.org>
parents: 13256
diff changeset
4 #ifndef Py_IMPORT_H
7e58c060d534 ANSI-fication and Py_PROTO extermination.
Fred Drake <fdrake@acm.org>
parents: 13256
diff changeset
5 #define Py_IMPORT_H
7e58c060d534 ANSI-fication and Py_PROTO extermination.
Fred Drake <fdrake@acm.org>
parents: 13256
diff changeset
6 #ifdef __cplusplus
7e58c060d534 ANSI-fication and Py_PROTO extermination.
Fred Drake <fdrake@acm.org>
parents: 13256
diff changeset
7 extern "C" {
7e58c060d534 ANSI-fication and Py_PROTO extermination.
Fred Drake <fdrake@acm.org>
parents: 13256
diff changeset
8 #endif
1198
2937897a7d8b * Added Fixcprt.py: script to fix copyright message.
Guido van Rossum <guido@python.org>
parents: 790
diff changeset
9
24315
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 14375
diff changeset
10 PyAPI_FUNC(long) PyImport_GetMagicNumber(void);
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 14375
diff changeset
11 PyAPI_FUNC(PyObject *) PyImport_ExecCodeModule(char *name, PyObject *co);
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 14375
diff changeset
12 PyAPI_FUNC(PyObject *) PyImport_ExecCodeModuleEx(
13443
7e58c060d534 ANSI-fication and Py_PROTO extermination.
Fred Drake <fdrake@acm.org>
parents: 13256
diff changeset
13 char *name, PyObject *co, char *pathname);
24315
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 14375
diff changeset
14 PyAPI_FUNC(PyObject *) PyImport_GetModuleDict(void);
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 14375
diff changeset
15 PyAPI_FUNC(PyObject *) PyImport_AddModule(char *name);
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 14375
diff changeset
16 PyAPI_FUNC(PyObject *) PyImport_ImportModule(char *name);
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 14375
diff changeset
17 PyAPI_FUNC(PyObject *) PyImport_ImportModuleEx(
13443
7e58c060d534 ANSI-fication and Py_PROTO extermination.
Fred Drake <fdrake@acm.org>
parents: 13256
diff changeset
18 char *name, PyObject *globals, PyObject *locals, PyObject *fromlist);
24315
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 14375
diff changeset
19 PyAPI_FUNC(PyObject *) PyImport_Import(PyObject *name);
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 14375
diff changeset
20 PyAPI_FUNC(PyObject *) PyImport_ReloadModule(PyObject *m);
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 14375
diff changeset
21 PyAPI_FUNC(void) PyImport_Cleanup(void);
a8df0c0be242 Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents: 14375
diff changeset
22 PyAPI_FUNC(int) PyImport_ImportFrozenModule(char *);
13443
7e58c060d534 ANSI-fication and Py_PROTO extermination.
Fred Drake <fdrake@acm.org>
parents: 13256
diff changeset
23
24420
36e2fd3f08f7 Excise DL_IMPORT/EXPORT from object.h, and related files. This patch
Mark Hammond <mhammond@skippinet.com.au>
parents: 24315
diff changeset
24 PyAPI_FUNC(PyObject *)_PyImport_FindExtension(char *, char *);
36e2fd3f08f7 Excise DL_IMPORT/EXPORT from object.h, and related files. This patch
Mark Hammond <mhammond@skippinet.com.au>
parents: 24315
diff changeset
25 PyAPI_FUNC(PyObject *)_PyImport_FixupExtension(char *, char *);
5919
5da18e002b1a Mass checkin (more to follow for other directories).
Guido van Rossum <guido@python.org>
parents: 5376
diff changeset
26
3580
8e663945e174 Added decl for PyImport_Init.
Guido van Rossum <guido@python.org>
parents: 2348
diff changeset
27 struct _inittab {
13443
7e58c060d534 ANSI-fication and Py_PROTO extermination.
Fred Drake <fdrake@acm.org>
parents: 13256
diff changeset
28 char *name;
13661
ef25f32c4523 ANSIfications: fix empty arglists, and remove the checks for
Thomas Wouters <thomas@python.org>
parents: 13443
diff changeset
29 void (*initfunc)(void);
3580
8e663945e174 Added decl for PyImport_Init.
Guido van Rossum <guido@python.org>
parents: 2348
diff changeset
30 };
8e663945e174 Added decl for PyImport_Init.
Guido van Rossum <guido@python.org>
parents: 2348
diff changeset
31
24420
36e2fd3f08f7 Excise DL_IMPORT/EXPORT from object.h, and related files. This patch
Mark Hammond <mhammond@skippinet.com.au>
parents: 24315
diff changeset
32 PyAPI_DATA(struct _inittab *) PyImport_Inittab;
1329
519c25039c6a * Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents: 1198
diff changeset
33
24420
36e2fd3f08f7 Excise DL_IMPORT/EXPORT from object.h, and related files. This patch
Mark Hammond <mhammond@skippinet.com.au>
parents: 24315
diff changeset
34 PyAPI_FUNC(int) PyImport_AppendInittab(char *name, void (*initfunc)(void));
36e2fd3f08f7 Excise DL_IMPORT/EXPORT from object.h, and related files. This patch
Mark Hammond <mhammond@skippinet.com.au>
parents: 24315
diff changeset
35 PyAPI_FUNC(int) PyImport_ExtendInittab(struct _inittab *newtab);
8588
74a100cb7a64 Add PyImport_AppendInittab() an PyImport_ExtendInittab().
Guido van Rossum <guido@python.org>
parents: 7231
diff changeset
36
3681
a527f449ca26 Add defs for struct _frozen and struct _frozen *PyImport_FrozenModules();
Guido van Rossum <guido@python.org>
parents: 3580
diff changeset
37 struct _frozen {
13443
7e58c060d534 ANSI-fication and Py_PROTO extermination.
Fred Drake <fdrake@acm.org>
parents: 13256
diff changeset
38 char *name;
7e58c060d534 ANSI-fication and Py_PROTO extermination.
Fred Drake <fdrake@acm.org>
parents: 13256
diff changeset
39 unsigned char *code;
7e58c060d534 ANSI-fication and Py_PROTO extermination.
Fred Drake <fdrake@acm.org>
parents: 13256
diff changeset
40 int size;
3681
a527f449ca26 Add defs for struct _frozen and struct _frozen *PyImport_FrozenModules();
Guido van Rossum <guido@python.org>
parents: 3580
diff changeset
41 };
a527f449ca26 Add defs for struct _frozen and struct _frozen *PyImport_FrozenModules();
Guido van Rossum <guido@python.org>
parents: 3580
diff changeset
42
a527f449ca26 Add defs for struct _frozen and struct _frozen *PyImport_FrozenModules();
Guido van Rossum <guido@python.org>
parents: 3580
diff changeset
43 /* Embedding apps may change this pointer to point to their favorite
a527f449ca26 Add defs for struct _frozen and struct _frozen *PyImport_FrozenModules();
Guido van Rossum <guido@python.org>
parents: 3580
diff changeset
44 collection of frozen modules: */
a527f449ca26 Add defs for struct _frozen and struct _frozen *PyImport_FrozenModules();
Guido van Rossum <guido@python.org>
parents: 3580
diff changeset
45
24420
36e2fd3f08f7 Excise DL_IMPORT/EXPORT from object.h, and related files. This patch
Mark Hammond <mhammond@skippinet.com.au>
parents: 24315
diff changeset
46 PyAPI_DATA(struct _frozen *) PyImport_FrozenModules;
3681
a527f449ca26 Add defs for struct _frozen and struct _frozen *PyImport_FrozenModules();
Guido van Rossum <guido@python.org>
parents: 3580
diff changeset
47
1329
519c25039c6a * Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents: 1198
diff changeset
48 #ifdef __cplusplus
519c25039c6a * Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents: 1198
diff changeset
49 }
519c25039c6a * Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents: 1198
diff changeset
50 #endif
519c25039c6a * Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents: 1198
diff changeset
51 #endif /* !Py_IMPORT_H */