History

add hg and python

cinap_lenrek committed 15 years ago

Commit 4bb9e221 parent 987265c3706 files · +1228772 −-233Browse files

Showing the changes to sys/src/cmd/python/Include/sysmodule.h (1 of 3706 files). Show all

Unified · Split

sys/src/cmd/python/Include/sysmodule.h+30−0
@@ -0,0 +1,30 @@
1+
2+/* System module interface */
3+
4+#ifndef Py_SYSMODULE_H
5+#define Py_SYSMODULE_H
6+#ifdef __cplusplus
7+extern "C" {
8+#endif
9+
10+PyAPI_FUNC(PyObject *) PySys_GetObject(char *);
11+PyAPI_FUNC(int) PySys_SetObject(char *, PyObject *);
12+PyAPI_FUNC(FILE *) PySys_GetFile(char *, FILE *);
13+PyAPI_FUNC(void) PySys_SetArgv(int, char **);
14+PyAPI_FUNC(void) PySys_SetPath(char *);
15+
16+PyAPI_FUNC(void) PySys_WriteStdout(const char *format, ...)
17+ Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
18+PyAPI_FUNC(void) PySys_WriteStderr(const char *format, ...)
19+ Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
20+
21+PyAPI_DATA(PyObject *) _PySys_TraceFunc, *_PySys_ProfileFunc;
22+PyAPI_DATA(int) _PySys_CheckInterval;
23+
24+PyAPI_FUNC(void) PySys_ResetWarnOptions(void);
25+PyAPI_FUNC(void) PySys_AddWarnOption(char *);
26+
27+#ifdef __cplusplus
28+}
29+#endif
30+#endif /* !Py_SYSMODULE_H */