2021-08-08 09:38:33 +05:30
|
|
|
#ifndef Py_SYSMODULE_H
|
|
|
|
#define Py_SYSMODULE_H
|
2021-08-12 00:42:14 -07:00
|
|
|
#include "third_party/python/Include/object.h"
|
|
|
|
#include "third_party/python/Include/pyport.h"
|
2021-08-10 10:26:13 -07:00
|
|
|
COSMOPOLITAN_C_START_
|
2021-08-08 09:38:33 +05:30
|
|
|
|
2021-08-12 00:42:14 -07:00
|
|
|
PyObject * PySys_GetObject(const char *);
|
|
|
|
int PySys_SetObject(const char *, PyObject *);
|
2021-08-08 09:38:33 +05:30
|
|
|
#ifndef Py_LIMITED_API
|
2021-08-12 00:42:14 -07:00
|
|
|
PyObject * _PySys_GetObjectId(_Py_Identifier *key);
|
|
|
|
int _PySys_SetObjectId(_Py_Identifier *key, PyObject *);
|
2021-08-08 09:38:33 +05:30
|
|
|
#endif
|
|
|
|
|
2021-08-12 00:42:14 -07:00
|
|
|
void PySys_SetArgv(int, wchar_t **);
|
|
|
|
void PySys_SetArgvEx(int, wchar_t **, int);
|
|
|
|
void PySys_SetPath(const wchar_t *);
|
|
|
|
void PySys_FormatStdout(const char *, ...);
|
|
|
|
void PySys_FormatStderr(const char *, ...);
|
|
|
|
void PySys_ResetWarnOptions(void);
|
|
|
|
void PySys_AddWarnOption(const wchar_t *);
|
|
|
|
void PySys_AddWarnOptionUnicode(PyObject *);
|
|
|
|
int PySys_HasWarnOptions(void);
|
|
|
|
void PySys_AddXOption(const wchar_t *);
|
|
|
|
PyObject * PySys_GetXOptions(void);
|
2021-08-08 09:38:33 +05:30
|
|
|
|
|
|
|
#ifndef Py_LIMITED_API
|
2021-08-12 00:42:14 -07:00
|
|
|
size_t _PySys_GetSizeOf(PyObject *);
|
2021-08-08 09:38:33 +05:30
|
|
|
#endif
|
|
|
|
|
2021-08-10 10:26:13 -07:00
|
|
|
COSMOPOLITAN_C_END_
|
2021-08-08 09:38:33 +05:30
|
|
|
#endif /* !Py_SYSMODULE_H */
|