Mercurial > cpython-lru_cache-weakref
annotate Include/sysmodule.h @ 17581:c1937faabb23 2.1
Added support for optional explanation parameter to the \versionadded
macro.
Refactored do_cmd_versionadded() and do_cmd_versionchanged() to do most
of the work in a helper function, with the do_cmd_*() wrappers just supplying
a portion of the replacement text.
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Wed, 18 Apr 2001 17:29:14 +0000 |
| parents | 1779f8574a83 |
| children | 3d299b156511 |
| rev | line source |
|---|---|
| 145 | 1 |
| 6 | 2 /* System module interface */ |
| 3 | |
|
13445
091ca6b9348f
ANSI-fication and Py_PROTO extermination.
Fred Drake <fdrake@acm.org>
parents:
13256
diff
changeset
|
4 #ifndef Py_SYSMODULE_H |
|
091ca6b9348f
ANSI-fication and Py_PROTO extermination.
Fred Drake <fdrake@acm.org>
parents:
13256
diff
changeset
|
5 #define Py_SYSMODULE_H |
|
091ca6b9348f
ANSI-fication and Py_PROTO extermination.
Fred Drake <fdrake@acm.org>
parents:
13256
diff
changeset
|
6 #ifdef __cplusplus |
|
091ca6b9348f
ANSI-fication and Py_PROTO extermination.
Fred Drake <fdrake@acm.org>
parents:
13256
diff
changeset
|
7 extern "C" { |
|
091ca6b9348f
ANSI-fication and Py_PROTO extermination.
Fred Drake <fdrake@acm.org>
parents:
13256
diff
changeset
|
8 #endif |
|
091ca6b9348f
ANSI-fication and Py_PROTO extermination.
Fred Drake <fdrake@acm.org>
parents:
13256
diff
changeset
|
9 |
|
091ca6b9348f
ANSI-fication and Py_PROTO extermination.
Fred Drake <fdrake@acm.org>
parents:
13256
diff
changeset
|
10 DL_IMPORT(PyObject *) PySys_GetObject(char *); |
|
091ca6b9348f
ANSI-fication and Py_PROTO extermination.
Fred Drake <fdrake@acm.org>
parents:
13256
diff
changeset
|
11 DL_IMPORT(int) PySys_SetObject(char *, PyObject *); |
|
091ca6b9348f
ANSI-fication and Py_PROTO extermination.
Fred Drake <fdrake@acm.org>
parents:
13256
diff
changeset
|
12 DL_IMPORT(FILE *) PySys_GetFile(char *, FILE *); |
|
091ca6b9348f
ANSI-fication and Py_PROTO extermination.
Fred Drake <fdrake@acm.org>
parents:
13256
diff
changeset
|
13 DL_IMPORT(void) PySys_SetArgv(int, char **); |
|
091ca6b9348f
ANSI-fication and Py_PROTO extermination.
Fred Drake <fdrake@acm.org>
parents:
13256
diff
changeset
|
14 DL_IMPORT(void) PySys_SetPath(char *); |
|
709
7236e02c4563
Added definitions of sys_trace and sys_profile
Guido van Rossum <guido@python.org>
parents:
145
diff
changeset
|
15 |
|
9586
60fdb1db1175
Add DL_IMPORT(returntype) for all officially exported functions.
Guido van Rossum <guido@python.org>
parents:
8313
diff
changeset
|
16 DL_IMPORT(void) PySys_WriteStdout(const char *format, ...); |
|
60fdb1db1175
Add DL_IMPORT(returntype) for all officially exported functions.
Guido van Rossum <guido@python.org>
parents:
8313
diff
changeset
|
17 DL_IMPORT(void) PySys_WriteStderr(const char *format, ...); |
| 8313 | 18 |
|
2436
fa98dda07877
make the type a parameter of the DL_IMPORT macro, for Borland C
Guido van Rossum <guido@python.org>
parents:
2129
diff
changeset
|
19 extern DL_IMPORT(PyObject *) _PySys_TraceFunc, *_PySys_ProfileFunc; |
|
fa98dda07877
make the type a parameter of the DL_IMPORT macro, for Borland C
Guido van Rossum <guido@python.org>
parents:
2129
diff
changeset
|
20 extern DL_IMPORT(int) _PySys_CheckInterval; |
|
1329
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1257
diff
changeset
|
21 |
|
15594
1779f8574a83
Add declarations for PySys_ResetWarnOptions() and
Guido van Rossum <guido@python.org>
parents:
14375
diff
changeset
|
22 DL_IMPORT(void) PySys_ResetWarnOptions(void); |
|
1779f8574a83
Add declarations for PySys_ResetWarnOptions() and
Guido van Rossum <guido@python.org>
parents:
14375
diff
changeset
|
23 DL_IMPORT(void) PySys_AddWarnOption(char *); |
|
1779f8574a83
Add declarations for PySys_ResetWarnOptions() and
Guido van Rossum <guido@python.org>
parents:
14375
diff
changeset
|
24 |
|
1329
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1257
diff
changeset
|
25 #ifdef __cplusplus |
|
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1257
diff
changeset
|
26 } |
|
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1257
diff
changeset
|
27 #endif |
|
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1257
diff
changeset
|
28 #endif /* !Py_SYSMODULE_H */ |
