2021-08-08 04:08:33 +00:00
|
|
|
#ifndef Py_SYSMODULE_H
|
|
|
|
#define Py_SYSMODULE_H
|
2021-08-12 07:42:14 +00:00
|
|
|
#include "third_party/python/Include/object.h"
|
|
|
|
#include "third_party/python/Include/pyport.h"
|
2021-08-10 17:26:13 +00:00
|
|
|
COSMOPOLITAN_C_START_
|
2021-08-08 04:08:33 +00:00
|
|
|
|
2021-08-12 07:42:14 +00:00
|
|
|
PyObject * PySys_GetObject(const char *);
|
|
|
|
int PySys_SetObject(const char *, PyObject *);
|
2021-08-08 04:08:33 +00:00
|
|
|
#ifndef Py_LIMITED_API
|
2021-08-12 07:42:14 +00:00
|
|
|
PyObject * _PySys_GetObjectId(_Py_Identifier *key);
|
|
|
|
int _PySys_SetObjectId(_Py_Identifier *key, PyObject *);
|
2021-08-08 04:08:33 +00:00
|
|
|
#endif
|
|
|
|
|
2021-08-12 07:42:14 +00: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 04:08:33 +00:00
|
|
|
|
|
|
|
#ifndef Py_LIMITED_API
|
2021-08-12 07:42:14 +00:00
|
|
|
size_t _PySys_GetSizeOf(PyObject *);
|
2021-08-08 04:08:33 +00:00
|
|
|
#endif
|
|
|
|
|
2021-08-10 17:26:13 +00:00
|
|
|
COSMOPOLITAN_C_END_
|
2021-08-08 04:08:33 +00:00
|
|
|
#endif /* !Py_SYSMODULE_H */
|