1 /**
2   Mirror _sysmodule.h
3 
4   System module interface 
5   */
6 module deimos.python.sysmodule;
7 
8 import core.stdc.stdio;
9 import deimos.python.pyport;
10 import deimos.python.object;
11 
12 extern(C):
13 // Python-header-file: Include/sysmodule.h:
14 
15 /// _
16 PyObject* PySys_GetObject(const(char)*);
17 /// _
18 int PySys_SetObject(const(char)*, PyObject*);
19 version(Python_3_0_Or_Later) {
20     /// Availability: 3.*
21     void PySys_SetArgv(int, wchar**);
22     /// Availability: 3.*
23     void PySys_SetArgvEx(int, wchar**, int);
24     /// Availability: 3.*
25     void PySys_SetPath(wchar*);
26 }else{
27     /// Availability: 2.*
28     FILE* PySys_GetFile(char*, FILE*);
29     /// Availability: 2.*
30     void PySys_SetArgv(int, char**);
31     /// Availability: 2.*
32     version(Python_2_6_Or_Later){
33         /// Availability: >= 2.6
34         void PySys_SetArgvEx(int, char**, int);
35     }
36     /// Availability: 2.*
37     void PySys_SetPath(char*);
38 }
39 
40 /// _
41 void PySys_WriteStdout(const(char)* format, ...);
42 /// _
43 void PySys_WriteStderr(const(char)* format, ...);
44 version(Python_3_2_Or_Later) {
45     /// Availability: >= 3.2
46     void PySys_FormatStdout(const(char)* format, ...);
47     /// Availability: >= 3.2
48     void PySys_FormatStderr(const(char)* format, ...);
49 }
50 
51 /// _
52 mixin(PyAPI_DATA!"PyObject* _PySys_TraceFunc");
53 /// _
54 mixin(PyAPI_DATA!"PyObject** _PySys_ProfileFunc");
55 
56 /// _
57 void PySys_ResetWarnOptions();
58 version(Python_3_0_Or_Later) {
59     /// Availability: 3.*
60     void PySys_AddWarnOption(const(wchar)*);
61     version(Python_3_2_Or_Later) {
62         /// Availability: >= 3.2
63         void PySys_AddWarnOptionUnicode(PyObject*);
64     }
65 }else{
66     /// Availability: 2.*
67     void PySys_AddWarnOption(char*);
68 }
69 version(Python_2_6_Or_Later){
70     /// Availability: >= 2.6
71     int PySys_HasWarnOptions();
72 }
73 version(Python_3_2_Or_Later) {
74     /// Availability: >= 3.2
75     void PySys_AddXOption(const(wchar)*);
76     /// Availability: >= 3.2
77     PyObject* PySys_GetXOptions();
78 }
79 
80