@@ -21,7 +21,7 @@ PyObject* Python_IMG_Next(PyObject* self, PyObject* args) {
2121
2222 IMG* img_object = (IMG*) malloc (sizeof (IMG));
2323 *img_object = IMG_Next (*(IMG*)PyInt_AsLong (img));
24- return Py_BuildValue (" L " , img_object);
24+ return Py_BuildValue (" k " , img_object);
2525}
2626
2727PyObject* Python_IMG_Prev (PyObject* self, PyObject* args) {
@@ -30,13 +30,13 @@ PyObject* Python_IMG_Prev(PyObject* self, PyObject* args) {
3030
3131 IMG* img_object = (IMG*) malloc (sizeof (IMG));
3232 *img_object = IMG_Prev (*(IMG*)PyInt_AsLong (img));
33- return Py_BuildValue (" L " , img_object);
33+ return Py_BuildValue (" k " , img_object);
3434}
3535
3636PyObject* Python_IMG_Invalid (PyObject* self, PyObject* args) {
3737 IMG* img_object = (IMG*) malloc (sizeof (IMG));
3838 *img_object = IMG_Invalid ();
39- return Py_BuildValue (" L " , img_object);
39+ return Py_BuildValue (" k " , img_object);
4040}
4141
4242PyObject* Python_IMG_Valid (PyObject* self, PyObject* args) {
@@ -56,7 +56,7 @@ PyObject* Python_IMG_SecHead(PyObject* self, PyObject* args) {
5656 IMG img_object = *(IMG*)PyInt_AsLong (img);
5757 SEC* sec = (SEC*) malloc (sizeof (SEC));
5858 *sec = IMG_SecHead (img_object);
59- return Py_BuildValue (" L " , sec);
59+ return Py_BuildValue (" k " , sec);
6060}
6161
6262PyObject* Python_IMG_SecTail (PyObject* self, PyObject* args) {
@@ -65,7 +65,7 @@ PyObject* Python_IMG_SecTail(PyObject* self, PyObject* args) {
6565 IMG img_object = *(IMG*)PyInt_AsLong (img);
6666 SEC* sec = (SEC*) malloc (sizeof (SEC));
6767 *sec = IMG_SecTail (img_object);
68- return Py_BuildValue (" L " , sec);
68+ return Py_BuildValue (" k " , sec);
6969}
7070
7171PyObject* Python_IMG_RegsymHead (PyObject* self, PyObject* args) {
@@ -79,7 +79,7 @@ PyObject* Python_IMG_Entry(PyObject* self, PyObject* args) {
7979 PyObject* img;
8080 PyArg_ParseTuple (args, " O" , &img);
8181 IMG img_object = *(IMG*)PyInt_AsLong (img);
82- return Py_BuildValue (" L " , IMG_Entry (img_object));
82+ return Py_BuildValue (" k " , IMG_Entry (img_object));
8383}
8484
8585PyObject* Python_IMG_Name (PyObject* self, PyObject* args) {
@@ -93,49 +93,49 @@ PyObject* Python_IMG_Gp(PyObject* self, PyObject* args) {
9393 PyObject* img;
9494 PyArg_ParseTuple (args, " O" , &img);
9595 IMG img_object = *(IMG*)PyInt_AsLong (img);
96- return Py_BuildValue (" L " , IMG_Gp (img_object));
96+ return Py_BuildValue (" k " , IMG_Gp (img_object));
9797}
9898
9999PyObject* Python_IMG_LoadOffset (PyObject* self, PyObject* args) {
100100 PyObject* img;
101101 PyArg_ParseTuple (args, " O" , &img);
102102 IMG img_object = *(IMG*)PyInt_AsLong (img);
103- return Py_BuildValue (" L " , IMG_LoadOffset (img_object));
103+ return Py_BuildValue (" k " , IMG_LoadOffset (img_object));
104104}
105105
106106PyObject* Python_IMG_LowAddress (PyObject* self, PyObject* args) {
107107 PyObject* img;
108108 PyArg_ParseTuple (args, " O" , &img);
109109 IMG img_object = *(IMG*)PyInt_AsLong (img);
110- return Py_BuildValue (" L " , IMG_LowAddress (img_object));
110+ return Py_BuildValue (" k " , IMG_LowAddress (img_object));
111111}
112112
113113PyObject* Python_IMG_HighAddress (PyObject* self, PyObject* args) {
114114 PyObject* img;
115115 PyArg_ParseTuple (args, " O" , &img);
116116 IMG img_object = *(IMG*)PyInt_AsLong (img);
117- return Py_BuildValue (" L " , IMG_HighAddress (img_object));
117+ return Py_BuildValue (" k " , IMG_HighAddress (img_object));
118118}
119119
120120PyObject* Python_IMG_StartAddress (PyObject* self, PyObject* args) {
121121 PyObject* img;
122122 PyArg_ParseTuple (args, " O" , &img);
123123 IMG img_object = *(IMG*)PyInt_AsLong (img);
124- return Py_BuildValue (" L " , IMG_StartAddress (img_object));
124+ return Py_BuildValue (" k " , IMG_StartAddress (img_object));
125125}
126126
127127PyObject* Python_IMG_SizeMapped (PyObject* self, PyObject* args) {
128128 PyObject* img;
129129 PyArg_ParseTuple (args, " O" , &img);
130130 IMG img_object = *(IMG*)PyInt_AsLong (img);
131- return Py_BuildValue (" L " , IMG_SizeMapped (img_object));
131+ return Py_BuildValue (" k " , IMG_SizeMapped (img_object));
132132}
133133
134134PyObject* Python_IMG_Type (PyObject* self, PyObject* args) {
135135 PyObject* img;
136136 PyArg_ParseTuple (args, " O" , &img);
137137 IMG img_object = *(IMG*)PyInt_AsLong (img);
138- return Py_BuildValue (" L " , IMG_Type (img_object));
138+ return Py_BuildValue (" k " , IMG_Type (img_object));
139139}
140140
141141PyObject* Python_IMG_IsMainExecutable (PyObject* self, PyObject* args) {
@@ -164,31 +164,31 @@ PyObject* Python_IMG_Id(PyObject* self, PyObject* args) {
164164 PyObject* img;
165165 PyArg_ParseTuple (args, " O" , &img);
166166 IMG img_object = *(IMG*)PyInt_AsLong (img);
167- return Py_BuildValue (" L " , IMG_Id (img_object));
167+ return Py_BuildValue (" k " , IMG_Id (img_object));
168168}
169169
170170PyObject* Python_IMG_FindImgById (PyObject* self, PyObject* args) {
171171 PyObject* id;
172172 PyArg_ParseTuple (args, " O" , &id);
173173 IMG* img = (IMG*) malloc (sizeof (IMG));
174174 *img = IMG_FindImgById ((UINT32) PyInt_AsLong (id));
175- return Py_BuildValue (" L " , img);
175+ return Py_BuildValue (" k " , img);
176176}
177177
178178PyObject* Python_IMG_FindByAddress (PyObject* self, PyObject* args) {
179179 PyObject* address;
180180 PyArg_ParseTuple (args, " O" , &address);
181181 IMG* img = (IMG*) malloc (sizeof (IMG));
182182 *img = IMG_FindByAddress ((ADDRINT) PyInt_AsLong (address));
183- return Py_BuildValue (" L " , img);
183+ return Py_BuildValue (" k " , img);
184184}
185185
186186PyObject* Python_IMG_Open (PyObject* self, PyObject* args) {
187187 PyObject* filename;
188188 PyArg_ParseTuple (args, " O" , &filename);
189189 IMG* img = (IMG*) malloc (sizeof (IMG));
190190 *img = IMG_Open (PyString_AsString (filename));
191- return Py_BuildValue (" L " , img);
191+ return Py_BuildValue (" k " , img);
192192}
193193
194194PyObject* Python_IMG_Close (PyObject* self, PyObject* args) {
@@ -202,12 +202,12 @@ PyObject* Python_IMG_Close(PyObject* self, PyObject* args) {
202202PyObject* Python_APP_ImgHead (PyObject* self, PyObject* args) {
203203 IMG* img = (IMG*) malloc (sizeof (IMG));
204204 *img = APP_ImgHead ();
205- return Py_BuildValue (" L " , img);
205+ return Py_BuildValue (" k " , img);
206206}
207207
208208PyObject* Python_APP_ImgTail (PyObject* self, PyObject* args) {
209209 IMG* img = (IMG*) malloc (sizeof (IMG));
210210 *img = APP_ImgTail ();
211- return Py_BuildValue (" L " , img);
211+ return Py_BuildValue (" k " , img);
212212}
213213
0 commit comments