Permalink
Browse files

Generated new pylibemu.c

  • Loading branch information...
1 parent 61ca396 commit 85040a23131e439d36a58c686608a4a587b81ff5 @buffer committed May 23, 2012
Showing with 208 additions and 155 deletions.
  1. +208 −155 src/pylibemu.c
View
363 src/pylibemu.c
@@ -1,4 +1,4 @@
-/* Generated by Cython 0.14.1 on Tue May 22 16:46:55 2012 */
+/* Generated by Cython 0.14.1 on Wed May 23 10:35:36 2012 */
#define PY_SSIZE_T_CLEAN
#include "Python.h"
@@ -695,12 +695,13 @@ static char __pyx_k_41[] = "shellcode_getpc_test";
static char __pyx_k_42[] = "Emulator not initialized";
static char __pyx_k_62[] = "Error while reading a byte at address 0x%x";
static char __pyx_k_64[] = "Error while reading a word at address 0x%x";
-static char __pyx_k_67[] = "Error while reading a dword at address 0x%x";
-static char __pyx_k_69[] = "Error while reading a string at address 0x%x";
-static char __pyx_k_73[] = "Emulator environment error";
-static char __pyx_k_75[] = "%(asctime)s %(message)s";
-static char __pyx_k_76[] = "[%Y-%m-%d %H:%M:%S]";
-static char __pyx_k_77[] = "emu_profile_truncated";
+static char __pyx_k_67[] = "Error while allocating memory";
+static char __pyx_k_69[] = "Error while reading a dword at address 0x%x";
+static char __pyx_k_71[] = "Error while reading a string at address 0x%x";
+static char __pyx_k_75[] = "Emulator environment error";
+static char __pyx_k_77[] = "%(asctime)s %(message)s";
+static char __pyx_k_78[] = "[%Y-%m-%d %H:%M:%S]";
+static char __pyx_k_79[] = "emu_profile_truncated";
static char __pyx_k__s[] = "s";
static char __pyx_k__wb[] = "wb";
static char __pyx_k__eax[] = "eax";
@@ -817,10 +818,11 @@ static PyObject *__pyx_kp_s_62;
static PyObject *__pyx_kp_s_64;
static PyObject *__pyx_kp_s_67;
static PyObject *__pyx_kp_s_69;
-static PyObject *__pyx_kp_s_73;
+static PyObject *__pyx_kp_s_71;
static PyObject *__pyx_kp_s_75;
-static PyObject *__pyx_kp_s_76;
-static PyObject *__pyx_n_s_77;
+static PyObject *__pyx_kp_s_77;
+static PyObject *__pyx_kp_s_78;
+static PyObject *__pyx_n_s_79;
static PyObject *__pyx_n_s__EMU_REGS;
static PyObject *__pyx_n_s__Error;
static PyObject *__pyx_n_s__RuntimeError;
@@ -956,9 +958,10 @@ static PyObject *__pyx_k_tuple_65;
static PyObject *__pyx_k_tuple_66;
static PyObject *__pyx_k_tuple_68;
static PyObject *__pyx_k_tuple_70;
-static PyObject *__pyx_k_tuple_71;
static PyObject *__pyx_k_tuple_72;
+static PyObject *__pyx_k_tuple_73;
static PyObject *__pyx_k_tuple_74;
+static PyObject *__pyx_k_tuple_76;
/* "pylibemu.pyx":42
*
@@ -7040,7 +7043,7 @@ static char __pyx_doc_8pylibemu_8Emulator_30memory_read_byte[] = " \n Met
static PyObject *__pyx_pf_8pylibemu_8Emulator_30memory_read_byte(PyObject *__pyx_v_self, PyObject *__pyx_arg_addr) {
uint32_t __pyx_v_addr;
struct emu_memory *__pyx_v__mem;
- uint8_t *__pyx_v_byte;
+ uint8_t __pyx_v_byte;
PyObject *__pyx_r = NULL;
int __pyx_t_1;
PyObject *__pyx_t_2 = NULL;
@@ -7058,7 +7061,7 @@ static PyObject *__pyx_pf_8pylibemu_8Emulator_30memory_read_byte(PyObject *__pyx
__pyx_L4_argument_unpacking_done:;
/* "pylibemu.pyx":995
- * cdef uint8_t *byte
+ * cdef uint8_t byte
*
* if self._emu is NULL: # <<<<<<<<<<<<<<
* raise RuntimeError('Emulator not initialized')
@@ -7087,27 +7090,27 @@ static PyObject *__pyx_pf_8pylibemu_8Emulator_30memory_read_byte(PyObject *__pyx
* raise RuntimeError('Emulator not initialized')
*
* _mem = emu_memory_get(self._emu) # <<<<<<<<<<<<<<
- * if emu_memory_read_byte(_mem, addr, byte):
+ * if emu_memory_read_byte(_mem, addr, &byte):
* raise RuntimeError("Error while reading a byte at address 0x%x" % (addr, ))
*/
__pyx_v__mem = emu_memory_get(((struct __pyx_obj_8pylibemu_Emulator *)__pyx_v_self)->_emu);
/* "pylibemu.pyx":999
*
* _mem = emu_memory_get(self._emu)
- * if emu_memory_read_byte(_mem, addr, byte): # <<<<<<<<<<<<<<
+ * if emu_memory_read_byte(_mem, addr, &byte): # <<<<<<<<<<<<<<
* raise RuntimeError("Error while reading a byte at address 0x%x" % (addr, ))
*
*/
- __pyx_t_3 = emu_memory_read_byte(__pyx_v__mem, __pyx_v_addr, __pyx_v_byte);
+ __pyx_t_3 = emu_memory_read_byte(__pyx_v__mem, __pyx_v_addr, (&__pyx_v_byte));
if (__pyx_t_3) {
/* "pylibemu.pyx":1000
* _mem = emu_memory_get(self._emu)
- * if emu_memory_read_byte(_mem, addr, byte):
+ * if emu_memory_read_byte(_mem, addr, &byte):
* raise RuntimeError("Error while reading a byte at address 0x%x" % (addr, )) # <<<<<<<<<<<<<<
*
- * return byte[0]
+ * return byte
*/
__pyx_t_2 = __Pyx_PyInt_to_py_uint32_t(__pyx_v_addr); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1000; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_2);
@@ -7137,12 +7140,12 @@ static PyObject *__pyx_pf_8pylibemu_8Emulator_30memory_read_byte(PyObject *__pyx
/* "pylibemu.pyx":1002
* raise RuntimeError("Error while reading a byte at address 0x%x" % (addr, ))
*
- * return byte[0] # <<<<<<<<<<<<<<
+ * return byte # <<<<<<<<<<<<<<
*
* def memory_read_word(self, uint32_t addr):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_2 = __Pyx_PyInt_to_py_uint8_t((__pyx_v_byte[0])); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1002; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
+ __pyx_t_2 = __Pyx_PyInt_to_py_uint8_t(__pyx_v_byte); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1002; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_2);
__pyx_r = __pyx_t_2;
__pyx_t_2 = 0;
@@ -7162,7 +7165,7 @@ static PyObject *__pyx_pf_8pylibemu_8Emulator_30memory_read_byte(PyObject *__pyx
}
/* "pylibemu.pyx":1004
- * return byte[0]
+ * return byte
*
* def memory_read_word(self, uint32_t addr): # <<<<<<<<<<<<<<
* '''
@@ -7174,7 +7177,7 @@ static char __pyx_doc_8pylibemu_8Emulator_31memory_read_word[] = " \n Met
static PyObject *__pyx_pf_8pylibemu_8Emulator_31memory_read_word(PyObject *__pyx_v_self, PyObject *__pyx_arg_addr) {
uint32_t __pyx_v_addr;
struct emu_memory *__pyx_v__mem;
- uint16_t *__pyx_v_word;
+ uint16_t __pyx_v_word;
PyObject *__pyx_r = NULL;
int __pyx_t_1;
PyObject *__pyx_t_2 = NULL;
@@ -7192,7 +7195,7 @@ static PyObject *__pyx_pf_8pylibemu_8Emulator_31memory_read_word(PyObject *__pyx
__pyx_L4_argument_unpacking_done:;
/* "pylibemu.pyx":1019
- * cdef uint16_t *word
+ * cdef uint16_t word
*
* if self._emu is NULL: # <<<<<<<<<<<<<<
* raise RuntimeError('Emulator not initialized')
@@ -7221,27 +7224,27 @@ static PyObject *__pyx_pf_8pylibemu_8Emulator_31memory_read_word(PyObject *__pyx
* raise RuntimeError('Emulator not initialized')
*
* _mem = emu_memory_get(self._emu) # <<<<<<<<<<<<<<
- * if emu_memory_read_word(_mem, addr, word):
+ * if emu_memory_read_word(_mem, addr, &word):
* raise RuntimeError("Error while reading a word at address 0x%x" % (addr, ))
*/
__pyx_v__mem = emu_memory_get(((struct __pyx_obj_8pylibemu_Emulator *)__pyx_v_self)->_emu);
/* "pylibemu.pyx":1023
*
* _mem = emu_memory_get(self._emu)
- * if emu_memory_read_word(_mem, addr, word): # <<<<<<<<<<<<<<
+ * if emu_memory_read_word(_mem, addr, &word): # <<<<<<<<<<<<<<
* raise RuntimeError("Error while reading a word at address 0x%x" % (addr, ))
*
*/
- __pyx_t_3 = emu_memory_read_word(__pyx_v__mem, __pyx_v_addr, __pyx_v_word);
+ __pyx_t_3 = emu_memory_read_word(__pyx_v__mem, __pyx_v_addr, (&__pyx_v_word));
if (__pyx_t_3) {
/* "pylibemu.pyx":1024
* _mem = emu_memory_get(self._emu)
- * if emu_memory_read_word(_mem, addr, word):
+ * if emu_memory_read_word(_mem, addr, &word):
* raise RuntimeError("Error while reading a word at address 0x%x" % (addr, )) # <<<<<<<<<<<<<<
*
- * return word[0]
+ * return word
*/
__pyx_t_2 = __Pyx_PyInt_to_py_uint32_t(__pyx_v_addr); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1024; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_2);
@@ -7271,12 +7274,12 @@ static PyObject *__pyx_pf_8pylibemu_8Emulator_31memory_read_word(PyObject *__pyx
/* "pylibemu.pyx":1026
* raise RuntimeError("Error while reading a word at address 0x%x" % (addr, ))
*
- * return word[0] # <<<<<<<<<<<<<<
+ * return word # <<<<<<<<<<<<<<
*
* def memory_read_dword(self, uint32_t addr):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_2 = __Pyx_PyInt_to_py_uint16_t((__pyx_v_word[0])); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1026; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
+ __pyx_t_2 = __Pyx_PyInt_to_py_uint16_t(__pyx_v_word); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1026; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_2);
__pyx_r = __pyx_t_2;
__pyx_t_2 = 0;
@@ -7296,7 +7299,7 @@ static PyObject *__pyx_pf_8pylibemu_8Emulator_31memory_read_word(PyObject *__pyx
}
/* "pylibemu.pyx":1028
- * return word[0]
+ * return word
*
* def memory_read_dword(self, uint32_t addr): # <<<<<<<<<<<<<<
* '''
@@ -7308,7 +7311,7 @@ static char __pyx_doc_8pylibemu_8Emulator_32memory_read_dword[] = " \n Me
static PyObject *__pyx_pf_8pylibemu_8Emulator_32memory_read_dword(PyObject *__pyx_v_self, PyObject *__pyx_arg_addr) {
uint32_t __pyx_v_addr;
struct emu_memory *__pyx_v__mem;
- uint32_t *__pyx_v_dword;
+ uint32_t __pyx_v_dword;
PyObject *__pyx_r = NULL;
int __pyx_t_1;
PyObject *__pyx_t_2 = NULL;
@@ -7326,7 +7329,7 @@ static PyObject *__pyx_pf_8pylibemu_8Emulator_32memory_read_dword(PyObject *__py
__pyx_L4_argument_unpacking_done:;
/* "pylibemu.pyx":1043
- * cdef uint32_t *dword
+ * cdef uint32_t dword
*
* if self._emu is NULL: # <<<<<<<<<<<<<<
* raise RuntimeError('Emulator not initialized')
@@ -7355,27 +7358,27 @@ static PyObject *__pyx_pf_8pylibemu_8Emulator_32memory_read_dword(PyObject *__py
* raise RuntimeError('Emulator not initialized')
*
* _mem = emu_memory_get(self._emu) # <<<<<<<<<<<<<<
- * if emu_memory_read_dword(_mem, addr, dword):
+ * if emu_memory_read_dword(_mem, addr, &dword):
* raise RuntimeError("Error while reading a word at address 0x%x" % (addr, ))
*/
__pyx_v__mem = emu_memory_get(((struct __pyx_obj_8pylibemu_Emulator *)__pyx_v_self)->_emu);
/* "pylibemu.pyx":1047
*
* _mem = emu_memory_get(self._emu)
- * if emu_memory_read_dword(_mem, addr, dword): # <<<<<<<<<<<<<<
+ * if emu_memory_read_dword(_mem, addr, &dword): # <<<<<<<<<<<<<<
* raise RuntimeError("Error while reading a word at address 0x%x" % (addr, ))
*
*/
- __pyx_t_3 = emu_memory_read_dword(__pyx_v__mem, __pyx_v_addr, __pyx_v_dword);
+ __pyx_t_3 = emu_memory_read_dword(__pyx_v__mem, __pyx_v_addr, (&__pyx_v_dword));
if (__pyx_t_3) {
/* "pylibemu.pyx":1048
* _mem = emu_memory_get(self._emu)
- * if emu_memory_read_dword(_mem, addr, dword):
+ * if emu_memory_read_dword(_mem, addr, &dword):
* raise RuntimeError("Error while reading a word at address 0x%x" % (addr, )) # <<<<<<<<<<<<<<
*
- * return dword[0]
+ * return dword
*/
__pyx_t_2 = __Pyx_PyInt_to_py_uint32_t(__pyx_v_addr); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1048; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_2);
@@ -7405,12 +7408,12 @@ static PyObject *__pyx_pf_8pylibemu_8Emulator_32memory_read_dword(PyObject *__py
/* "pylibemu.pyx":1050
* raise RuntimeError("Error while reading a word at address 0x%x" % (addr, ))
*
- * return dword[0] # <<<<<<<<<<<<<<
+ * return dword # <<<<<<<<<<<<<<
*
* def memory_read_block(self, uint32_t addr, size_t _len):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_2 = __Pyx_PyInt_to_py_uint32_t((__pyx_v_dword[0])); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1050; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
+ __pyx_t_2 = __Pyx_PyInt_to_py_uint32_t(__pyx_v_dword); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1050; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_2);
__pyx_r = __pyx_t_2;
__pyx_t_2 = 0;
@@ -7430,7 +7433,7 @@ static PyObject *__pyx_pf_8pylibemu_8Emulator_32memory_read_dword(PyObject *__py
}
/* "pylibemu.pyx":1052
- * return dword[0]
+ * return dword
*
* def memory_read_block(self, uint32_t addr, size_t _len): # <<<<<<<<<<<<<<
* '''
@@ -7507,7 +7510,7 @@ static PyObject *__pyx_pf_8pylibemu_8Emulator_33memory_read_block(PyObject *__py
* if self._emu is NULL:
* raise RuntimeError('Emulator not initialized') # <<<<<<<<<<<<<<
*
- * _mem = emu_memory_get(self._emu)
+ * block = malloc(_len)
*/
__pyx_t_2 = PyObject_Call(__pyx_builtin_RuntimeError, ((PyObject *)__pyx_k_tuple_66), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1071; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_2);
@@ -7521,13 +7524,48 @@ static PyObject *__pyx_pf_8pylibemu_8Emulator_33memory_read_block(PyObject *__py
/* "pylibemu.pyx":1073
* raise RuntimeError('Emulator not initialized')
*
+ * block = malloc(_len) # <<<<<<<<<<<<<<
+ * if block is NULL:
+ * raise RuntimeError('Error while allocating memory')
+ */
+ __pyx_v_block = malloc(__pyx_v__len);
+
+ /* "pylibemu.pyx":1074
+ *
+ * block = malloc(_len)
+ * if block is NULL: # <<<<<<<<<<<<<<
+ * raise RuntimeError('Error while allocating memory')
+ *
+ */
+ __pyx_t_1 = (__pyx_v_block == NULL);
+ if (__pyx_t_1) {
+
+ /* "pylibemu.pyx":1075
+ * block = malloc(_len)
+ * if block is NULL:
+ * raise RuntimeError('Error while allocating memory') # <<<<<<<<<<<<<<
+ *
+ * _mem = emu_memory_get(self._emu)
+ */
+ __pyx_t_2 = PyObject_Call(__pyx_builtin_RuntimeError, ((PyObject *)__pyx_k_tuple_68), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1075; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
+ __Pyx_GOTREF(__pyx_t_2);
+ __Pyx_Raise(__pyx_t_2, 0, 0);
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1075; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
+ goto __pyx_L7;
+ }
+ __pyx_L7:;
+
+ /* "pylibemu.pyx":1077
+ * raise RuntimeError('Error while allocating memory')
+ *
* _mem = emu_memory_get(self._emu) # <<<<<<<<<<<<<<
* if emu_memory_read_block(_mem, addr, block, _len):
* raise RuntimeError("Error while reading a dword at address 0x%x" % (addr, ))
*/
__pyx_v__mem = emu_memory_get(((struct __pyx_obj_8pylibemu_Emulator *)__pyx_v_self)->_emu);
- /* "pylibemu.pyx":1074
+ /* "pylibemu.pyx":1078
*
* _mem = emu_memory_get(self._emu)
* if emu_memory_read_block(_mem, addr, block, _len): # <<<<<<<<<<<<<<
@@ -7537,47 +7575,47 @@ static PyObject *__pyx_pf_8pylibemu_8Emulator_33memory_read_block(PyObject *__py
__pyx_t_3 = emu_memory_read_block(__pyx_v__mem, __pyx_v_addr, __pyx_v_block, __pyx_v__len);
if (__pyx_t_3) {
- /* "pylibemu.pyx":1075
+ /* "pylibemu.pyx":1079
* _mem = emu_memory_get(self._emu)
* if emu_memory_read_block(_mem, addr, block, _len):
* raise RuntimeError("Error while reading a dword at address 0x%x" % (addr, )) # <<<<<<<<<<<<<<
*
* return <char *>block
*/
- __pyx_t_2 = __Pyx_PyInt_to_py_uint32_t(__pyx_v_addr); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1075; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
+ __pyx_t_2 = __Pyx_PyInt_to_py_uint32_t(__pyx_v_addr); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1079; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_2);
- __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1075; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
+ __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1079; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
__Pyx_GIVEREF(__pyx_t_2);
__pyx_t_2 = 0;
- __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_67), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1075; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
+ __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_69), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1079; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
__Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
- __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1075; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
+ __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1079; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
PyTuple_SET_ITEM(__pyx_t_4, 0, ((PyObject *)__pyx_t_2));
__Pyx_GIVEREF(((PyObject *)__pyx_t_2));
__pyx_t_2 = 0;
- __pyx_t_2 = PyObject_Call(__pyx_builtin_RuntimeError, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1075; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
+ __pyx_t_2 = PyObject_Call(__pyx_builtin_RuntimeError, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1079; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
__Pyx_Raise(__pyx_t_2, 0, 0);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1075; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
- goto __pyx_L7;
+ {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1079; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
+ goto __pyx_L8;
}
- __pyx_L7:;
+ __pyx_L8:;
- /* "pylibemu.pyx":1077
+ /* "pylibemu.pyx":1081
* raise RuntimeError("Error while reading a dword at address 0x%x" % (addr, ))
*
* return <char *>block # <<<<<<<<<<<<<<
*
* def memory_read_string(self, uint32_t addr, uint32_t maxsize):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_2 = PyBytes_FromString(((char *)__pyx_v_block)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1077; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
+ __pyx_t_2 = PyBytes_FromString(((char *)__pyx_v_block)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1081; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
__pyx_r = ((PyObject *)__pyx_t_2);
__pyx_t_2 = 0;
@@ -7596,7 +7634,7 @@ static PyObject *__pyx_pf_8pylibemu_8Emulator_33memory_read_block(PyObject *__py
return __pyx_r;
}
-/* "pylibemu.pyx":1079
+/* "pylibemu.pyx":1083
* return <char *>block
*
* def memory_read_string(self, uint32_t addr, uint32_t maxsize): # <<<<<<<<<<<<<<
@@ -7610,7 +7648,7 @@ static PyObject *__pyx_pf_8pylibemu_8Emulator_34memory_read_string(PyObject *__p
uint32_t __pyx_v_addr;
uint32_t __pyx_v_maxsize;
struct emu_memory *__pyx_v__mem;
- struct emu_string *__pyx_v_s;
+ struct emu_string __pyx_v_s;
PyObject *__pyx_r = NULL;
int __pyx_t_1;
PyObject *__pyx_t_2 = NULL;
@@ -7636,31 +7674,31 @@ static PyObject *__pyx_pf_8pylibemu_8Emulator_34memory_read_string(PyObject *__p
values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__maxsize);
if (likely(values[1])) kw_args--;
else {
- __Pyx_RaiseArgtupleInvalid("memory_read_string", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1079; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
+ __Pyx_RaiseArgtupleInvalid("memory_read_string", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1083; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
}
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "memory_read_string") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1079; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "memory_read_string") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1083; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
}
- __pyx_v_addr = __Pyx_PyInt_from_py_uint32_t(values[0]); if (unlikely((__pyx_v_addr == (uint32_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1079; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
- __pyx_v_maxsize = __Pyx_PyInt_from_py_uint32_t(values[1]); if (unlikely((__pyx_v_maxsize == (uint32_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1079; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
+ __pyx_v_addr = __Pyx_PyInt_from_py_uint32_t(values[0]); if (unlikely((__pyx_v_addr == (uint32_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1083; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
+ __pyx_v_maxsize = __Pyx_PyInt_from_py_uint32_t(values[1]); if (unlikely((__pyx_v_maxsize == (uint32_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1083; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
} else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
goto __pyx_L5_argtuple_error;
} else {
- __pyx_v_addr = __Pyx_PyInt_from_py_uint32_t(PyTuple_GET_ITEM(__pyx_args, 0)); if (unlikely((__pyx_v_addr == (uint32_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1079; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
- __pyx_v_maxsize = __Pyx_PyInt_from_py_uint32_t(PyTuple_GET_ITEM(__pyx_args, 1)); if (unlikely((__pyx_v_maxsize == (uint32_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1079; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
+ __pyx_v_addr = __Pyx_PyInt_from_py_uint32_t(PyTuple_GET_ITEM(__pyx_args, 0)); if (unlikely((__pyx_v_addr == (uint32_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1083; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
+ __pyx_v_maxsize = __Pyx_PyInt_from_py_uint32_t(PyTuple_GET_ITEM(__pyx_args, 1)); if (unlikely((__pyx_v_maxsize == (uint32_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1083; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("memory_read_string", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1079; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
+ __Pyx_RaiseArgtupleInvalid("memory_read_string", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1083; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
__pyx_L3_error:;
__Pyx_AddTraceback("pylibemu.Emulator.memory_read_string");
__Pyx_RefNannyFinishContext();
return NULL;
__pyx_L4_argument_unpacking_done:;
- /* "pylibemu.pyx":1097
- * cdef c_emu_string *s
+ /* "pylibemu.pyx":1101
+ * cdef c_emu_string s
*
* if self._emu is NULL: # <<<<<<<<<<<<<<
* raise RuntimeError('Emulator not initialized')
@@ -7669,82 +7707,82 @@ static PyObject *__pyx_pf_8pylibemu_8Emulator_34memory_read_string(PyObject *__p
__pyx_t_1 = (((struct __pyx_obj_8pylibemu_Emulator *)__pyx_v_self)->_emu == NULL);
if (__pyx_t_1) {
- /* "pylibemu.pyx":1098
+ /* "pylibemu.pyx":1102
*
* if self._emu is NULL:
* raise RuntimeError('Emulator not initialized') # <<<<<<<<<<<<<<
*
* _mem = emu_memory_get(self._emu)
*/
- __pyx_t_2 = PyObject_Call(__pyx_builtin_RuntimeError, ((PyObject *)__pyx_k_tuple_68), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1098; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
+ __pyx_t_2 = PyObject_Call(__pyx_builtin_RuntimeError, ((PyObject *)__pyx_k_tuple_70), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1102; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_2);
__Pyx_Raise(__pyx_t_2, 0, 0);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1098; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
+ {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1102; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
goto __pyx_L6;
}
__pyx_L6:;
- /* "pylibemu.pyx":1100
+ /* "pylibemu.pyx":1104
* raise RuntimeError('Emulator not initialized')
*
* _mem = emu_memory_get(self._emu) # <<<<<<<<<<<<<<
- * if emu_memory_read_string(_mem, addr, s, maxsize):
+ * if emu_memory_read_string(_mem, addr, &s, maxsize):
* raise RuntimeError("Error while reading a string at address 0x%x" % (addr, ))
*/
__pyx_v__mem = emu_memory_get(((struct __pyx_obj_8pylibemu_Emulator *)__pyx_v_self)->_emu);
- /* "pylibemu.pyx":1101
+ /* "pylibemu.pyx":1105
*
* _mem = emu_memory_get(self._emu)
- * if emu_memory_read_string(_mem, addr, s, maxsize): # <<<<<<<<<<<<<<
+ * if emu_memory_read_string(_mem, addr, &s, maxsize): # <<<<<<<<<<<<<<
* raise RuntimeError("Error while reading a string at address 0x%x" % (addr, ))
*
*/
- __pyx_t_3 = emu_memory_read_string(__pyx_v__mem, __pyx_v_addr, __pyx_v_s, __pyx_v_maxsize);
+ __pyx_t_3 = emu_memory_read_string(__pyx_v__mem, __pyx_v_addr, (&__pyx_v_s), __pyx_v_maxsize);
if (__pyx_t_3) {
- /* "pylibemu.pyx":1102
+ /* "pylibemu.pyx":1106
* _mem = emu_memory_get(self._emu)
- * if emu_memory_read_string(_mem, addr, s, maxsize):
+ * if emu_memory_read_string(_mem, addr, &s, maxsize):
* raise RuntimeError("Error while reading a string at address 0x%x" % (addr, )) # <<<<<<<<<<<<<<
*
- * return <char *>s[0].data
+ * return <char *>s.data
*/
- __pyx_t_2 = __Pyx_PyInt_to_py_uint32_t(__pyx_v_addr); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1102; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
+ __pyx_t_2 = __Pyx_PyInt_to_py_uint32_t(__pyx_v_addr); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1106; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_2);
- __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1102; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
+ __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1106; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
__Pyx_GIVEREF(__pyx_t_2);
__pyx_t_2 = 0;
- __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_69), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1102; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
+ __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_71), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1106; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
__Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
- __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1102; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
+ __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1106; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
PyTuple_SET_ITEM(__pyx_t_4, 0, ((PyObject *)__pyx_t_2));
__Pyx_GIVEREF(((PyObject *)__pyx_t_2));
__pyx_t_2 = 0;
- __pyx_t_2 = PyObject_Call(__pyx_builtin_RuntimeError, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1102; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
+ __pyx_t_2 = PyObject_Call(__pyx_builtin_RuntimeError, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1106; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
__Pyx_Raise(__pyx_t_2, 0, 0);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1102; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
+ {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1106; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
goto __pyx_L7;
}
__pyx_L7:;
- /* "pylibemu.pyx":1104
+ /* "pylibemu.pyx":1108
* raise RuntimeError("Error while reading a string at address 0x%x" % (addr, ))
*
- * return <char *>s[0].data # <<<<<<<<<<<<<<
+ * return <char *>s.data # <<<<<<<<<<<<<<
*
* def memory_segment_select(self, c_emu_segment segment):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_2 = PyBytes_FromString(((char *)(__pyx_v_s[0]).data)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1104; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
+ __pyx_t_2 = PyBytes_FromString(((char *)__pyx_v_s.data)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1108; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
__pyx_r = ((PyObject *)__pyx_t_2);
__pyx_t_2 = 0;
@@ -7763,8 +7801,8 @@ static PyObject *__pyx_pf_8pylibemu_8Emulator_34memory_read_string(PyObject *__p
return __pyx_r;
}
-/* "pylibemu.pyx":1106
- * return <char *>s[0].data
+/* "pylibemu.pyx":1110
+ * return <char *>s.data
*
* def memory_segment_select(self, c_emu_segment segment): # <<<<<<<<<<<<<<
* '''
@@ -7781,7 +7819,7 @@ static PyObject *__pyx_pf_8pylibemu_8Emulator_35memory_segment_select(PyObject *
PyObject *__pyx_t_2 = NULL;
__Pyx_RefNannySetupContext("memory_segment_select");
assert(__pyx_arg_segment); {
- __pyx_v_segment = ((enum emu_segment)PyInt_AsLong(__pyx_arg_segment)); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1106; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
+ __pyx_v_segment = ((enum emu_segment)PyInt_AsLong(__pyx_arg_segment)); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1110; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L3_error:;
@@ -7790,7 +7828,7 @@ static PyObject *__pyx_pf_8pylibemu_8Emulator_35memory_segment_select(PyObject *
return NULL;
__pyx_L4_argument_unpacking_done:;
- /* "pylibemu.pyx":1123
+ /* "pylibemu.pyx":1127
* cdef c_emu_memory *_mem
*
* if self._emu is NULL: # <<<<<<<<<<<<<<
@@ -7800,23 +7838,23 @@ static PyObject *__pyx_pf_8pylibemu_8Emulator_35memory_segment_select(PyObject *
__pyx_t_1 = (((struct __pyx_obj_8pylibemu_Emulator *)__pyx_v_self)->_emu == NULL);
if (__pyx_t_1) {
- /* "pylibemu.pyx":1124
+ /* "pylibemu.pyx":1128
*
* if self._emu is NULL:
* raise RuntimeError('Emulator not initialized') # <<<<<<<<<<<<<<
*
* _mem = emu_memory_get(self._emu)
*/
- __pyx_t_2 = PyObject_Call(__pyx_builtin_RuntimeError, ((PyObject *)__pyx_k_tuple_70), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1124; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
+ __pyx_t_2 = PyObject_Call(__pyx_builtin_RuntimeError, ((PyObject *)__pyx_k_tuple_72), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1128; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_2);
__Pyx_Raise(__pyx_t_2, 0, 0);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1124; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
+ {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1128; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
goto __pyx_L5;
}
__pyx_L5:;
- /* "pylibemu.pyx":1126
+ /* "pylibemu.pyx":1130
* raise RuntimeError('Emulator not initialized')
*
* _mem = emu_memory_get(self._emu) # <<<<<<<<<<<<<<
@@ -7825,7 +7863,7 @@ static PyObject *__pyx_pf_8pylibemu_8Emulator_35memory_segment_select(PyObject *
*/
__pyx_v__mem = emu_memory_get(((struct __pyx_obj_8pylibemu_Emulator *)__pyx_v_self)->_emu);
- /* "pylibemu.pyx":1127
+ /* "pylibemu.pyx":1131
*
* _mem = emu_memory_get(self._emu)
* emu_memory_segment_select(_mem, segment) # <<<<<<<<<<<<<<
@@ -7846,7 +7884,7 @@ static PyObject *__pyx_pf_8pylibemu_8Emulator_35memory_segment_select(PyObject *
return __pyx_r;
}
-/* "pylibemu.pyx":1129
+/* "pylibemu.pyx":1133
* emu_memory_segment_select(_mem, segment)
*
* def memory_segment_get(self): # <<<<<<<<<<<<<<
@@ -7863,7 +7901,7 @@ static PyObject *__pyx_pf_8pylibemu_8Emulator_36memory_segment_get(PyObject *__p
PyObject *__pyx_t_2 = NULL;
__Pyx_RefNannySetupContext("memory_segment_get");
- /* "pylibemu.pyx":1146
+ /* "pylibemu.pyx":1150
* cdef c_emu_memory *_mem
*
* if self._emu is NULL: # <<<<<<<<<<<<<<
@@ -7873,23 +7911,23 @@ static PyObject *__pyx_pf_8pylibemu_8Emulator_36memory_segment_get(PyObject *__p
__pyx_t_1 = (((struct __pyx_obj_8pylibemu_Emulator *)__pyx_v_self)->_emu == NULL);
if (__pyx_t_1) {
- /* "pylibemu.pyx":1147
+ /* "pylibemu.pyx":1151
*
* if self._emu is NULL:
* raise RuntimeError('Emulator not initialized') # <<<<<<<<<<<<<<
*
* _mem = emu_memory_get(self._emu)
*/
- __pyx_t_2 = PyObject_Call(__pyx_builtin_RuntimeError, ((PyObject *)__pyx_k_tuple_71), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
+ __pyx_t_2 = PyObject_Call(__pyx_builtin_RuntimeError, ((PyObject *)__pyx_k_tuple_73), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1151; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_2);
__Pyx_Raise(__pyx_t_2, 0, 0);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
+ {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1151; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
goto __pyx_L5;
}
__pyx_L5:;
- /* "pylibemu.pyx":1149
+ /* "pylibemu.pyx":1153
* raise RuntimeError('Emulator not initialized')
*
* _mem = emu_memory_get(self._emu) # <<<<<<<<<<<<<<
@@ -7898,15 +7936,15 @@ static PyObject *__pyx_pf_8pylibemu_8Emulator_36memory_segment_get(PyObject *__p
*/
__pyx_v__mem = emu_memory_get(((struct __pyx_obj_8pylibemu_Emulator *)__pyx_v_self)->_emu);
- /* "pylibemu.pyx":1150
+ /* "pylibemu.pyx":1154
*
* _mem = emu_memory_get(self._emu)
* return emu_memory_segment_get(_mem) # <<<<<<<<<<<<<<
*
* # Win32 environment
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_2 = PyInt_FromLong(emu_memory_segment_get(__pyx_v__mem)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1150; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
+ __pyx_t_2 = PyInt_FromLong(emu_memory_segment_get(__pyx_v__mem)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1154; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_2);
__pyx_r = __pyx_t_2;
__pyx_t_2 = 0;
@@ -7924,7 +7962,7 @@ static PyObject *__pyx_pf_8pylibemu_8Emulator_36memory_segment_get(PyObject *__p
return __pyx_r;
}
-/* "pylibemu.pyx":1153
+/* "pylibemu.pyx":1157
*
* # Win32 environment
* def env_w32_hook_check(self): # <<<<<<<<<<<<<<
@@ -7941,7 +7979,7 @@ static PyObject *__pyx_pf_8pylibemu_8Emulator_37env_w32_hook_check(PyObject *__p
PyObject *__pyx_t_2 = NULL;
__Pyx_RefNannySetupContext("env_w32_hook_check");
- /* "pylibemu.pyx":1166
+ /* "pylibemu.pyx":1170
* cdef c_emu_env *_env
*
* if self._emu is NULL: # <<<<<<<<<<<<<<
@@ -7951,23 +7989,23 @@ static PyObject *__pyx_pf_8pylibemu_8Emulator_37env_w32_hook_check(PyObject *__p
__pyx_t_1 = (((struct __pyx_obj_8pylibemu_Emulator *)__pyx_v_self)->_emu == NULL);
if (__pyx_t_1) {
- /* "pylibemu.pyx":1167
+ /* "pylibemu.pyx":1171
*
* if self._emu is NULL:
* raise RuntimeError('Emulator not initialized') # <<<<<<<<<<<<<<
*
* _env = emu_env_new(self._emu)
*/
- __pyx_t_2 = PyObject_Call(__pyx_builtin_RuntimeError, ((PyObject *)__pyx_k_tuple_72), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1167; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
+ __pyx_t_2 = PyObject_Call(__pyx_builtin_RuntimeError, ((PyObject *)__pyx_k_tuple_74), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1171; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_2);
__Pyx_Raise(__pyx_t_2, 0, 0);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1167; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
+ {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1171; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
goto __pyx_L5;
}
__pyx_L5:;
- /* "pylibemu.pyx":1169
+ /* "pylibemu.pyx":1173
* raise RuntimeError('Emulator not initialized')
*
* _env = emu_env_new(self._emu) # <<<<<<<<<<<<<<
@@ -7976,7 +8014,7 @@ static PyObject *__pyx_pf_8pylibemu_8Emulator_37env_w32_hook_check(PyObject *__p
*/
__pyx_v__env = emu_env_new(((struct __pyx_obj_8pylibemu_Emulator *)__pyx_v_self)->_emu);
- /* "pylibemu.pyx":1170
+ /* "pylibemu.pyx":1174
*
* _env = emu_env_new(self._emu)
* if _env is NULL: # <<<<<<<<<<<<<<
@@ -7986,35 +8024,35 @@ static PyObject *__pyx_pf_8pylibemu_8Emulator_37env_w32_hook_check(PyObject *__p
__pyx_t_1 = (__pyx_v__env == NULL);
if (__pyx_t_1) {
- /* "pylibemu.pyx":1171
+ /* "pylibemu.pyx":1175
* _env = emu_env_new(self._emu)
* if _env is NULL:
* print emu_strerror(self._emu) # <<<<<<<<<<<<<<
* raise RuntimeError('Emulator environment error')
*
*/
- __pyx_t_2 = PyBytes_FromString(emu_strerror(((struct __pyx_obj_8pylibemu_Emulator *)__pyx_v_self)->_emu)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1171; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
+ __pyx_t_2 = PyBytes_FromString(emu_strerror(((struct __pyx_obj_8pylibemu_Emulator *)__pyx_v_self)->_emu)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1175; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
- if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1171; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
+ if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1175; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
- /* "pylibemu.pyx":1172
+ /* "pylibemu.pyx":1176
* if _env is NULL:
* print emu_strerror(self._emu)
* raise RuntimeError('Emulator environment error') # <<<<<<<<<<<<<<
*
* if emu_env_w32_eip_check(_env) is NULL:
*/
- __pyx_t_2 = PyObject_Call(__pyx_builtin_RuntimeError, ((PyObject *)__pyx_k_tuple_74), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1172; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
+ __pyx_t_2 = PyObject_Call(__pyx_builtin_RuntimeError, ((PyObject *)__pyx_k_tuple_76), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1176; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_2);
__Pyx_Raise(__pyx_t_2, 0, 0);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1172; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
+ {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1176; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
goto __pyx_L6;
}
__pyx_L6:;
- /* "pylibemu.pyx":1174
+ /* "pylibemu.pyx":1178
* raise RuntimeError('Emulator environment error')
*
* if emu_env_w32_eip_check(_env) is NULL: # <<<<<<<<<<<<<<
@@ -8024,15 +8062,15 @@ static PyObject *__pyx_pf_8pylibemu_8Emulator_37env_w32_hook_check(PyObject *__p
__pyx_t_1 = (emu_env_w32_eip_check(__pyx_v__env) == NULL);
if (__pyx_t_1) {
- /* "pylibemu.pyx":1175
+ /* "pylibemu.pyx":1179
*
* if emu_env_w32_eip_check(_env) is NULL:
* return False # <<<<<<<<<<<<<<
*
* return True
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_2 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1175; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
+ __pyx_t_2 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1179; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_2);
__pyx_r = __pyx_t_2;
__pyx_t_2 = 0;
@@ -8041,13 +8079,13 @@ static PyObject *__pyx_pf_8pylibemu_8Emulator_37env_w32_hook_check(PyObject *__p
}
__pyx_L7:;
- /* "pylibemu.pyx":1177
+ /* "pylibemu.pyx":1181
* return False
*
* return True # <<<<<<<<<<<<<<
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_2 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1177; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
+ __pyx_t_2 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1181; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_2);
__pyx_r = __pyx_t_2;
__pyx_t_2 = 0;
@@ -8522,10 +8560,11 @@ static __Pyx_StringTabEntry __pyx_string_tab[] = {
{&__pyx_kp_s_64, __pyx_k_64, sizeof(__pyx_k_64), 0, 0, 1, 0},
{&__pyx_kp_s_67, __pyx_k_67, sizeof(__pyx_k_67), 0, 0, 1, 0},
{&__pyx_kp_s_69, __pyx_k_69, sizeof(__pyx_k_69), 0, 0, 1, 0},
- {&__pyx_kp_s_73, __pyx_k_73, sizeof(__pyx_k_73), 0, 0, 1, 0},
+ {&__pyx_kp_s_71, __pyx_k_71, sizeof(__pyx_k_71), 0, 0, 1, 0},
{&__pyx_kp_s_75, __pyx_k_75, sizeof(__pyx_k_75), 0, 0, 1, 0},
- {&__pyx_kp_s_76, __pyx_k_76, sizeof(__pyx_k_76), 0, 0, 1, 0},
- {&__pyx_n_s_77, __pyx_k_77, sizeof(__pyx_k_77), 0, 0, 1, 1},
+ {&__pyx_kp_s_77, __pyx_k_77, sizeof(__pyx_k_77), 0, 0, 1, 0},
+ {&__pyx_kp_s_78, __pyx_k_78, sizeof(__pyx_k_78), 0, 0, 1, 0},
+ {&__pyx_n_s_79, __pyx_k_79, sizeof(__pyx_k_79), 0, 0, 1, 1},
{&__pyx_n_s__EMU_REGS, __pyx_k__EMU_REGS, sizeof(__pyx_k__EMU_REGS), 0, 0, 1, 1},
{&__pyx_n_s__Error, __pyx_k__Error, sizeof(__pyx_k__Error), 0, 0, 1, 1},
{&__pyx_n_s__RuntimeError, __pyx_k__RuntimeError, sizeof(__pyx_k__RuntimeError), 0, 0, 1, 1},
@@ -9023,7 +9062,7 @@ static int __Pyx_InitCachedConstants(void) {
* if self._emu is NULL:
* raise RuntimeError('Emulator not initialized') # <<<<<<<<<<<<<<
*
- * _mem = emu_memory_get(self._emu)
+ * block = malloc(_len)
*/
__pyx_k_tuple_66 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_66)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1071; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(((PyObject *)__pyx_k_tuple_66));
@@ -9032,75 +9071,89 @@ static int __Pyx_InitCachedConstants(void) {
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_42));
__Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_66));
- /* "pylibemu.pyx":1098
- *
- * if self._emu is NULL:
- * raise RuntimeError('Emulator not initialized') # <<<<<<<<<<<<<<
+ /* "pylibemu.pyx":1075
+ * block = malloc(_len)
+ * if block is NULL:
+ * raise RuntimeError('Error while allocating memory') # <<<<<<<<<<<<<<
*
* _mem = emu_memory_get(self._emu)
*/
- __pyx_k_tuple_68 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_68)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1098; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
+ __pyx_k_tuple_68 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_68)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1075; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(((PyObject *)__pyx_k_tuple_68));
- __Pyx_INCREF(((PyObject *)__pyx_kp_s_42));
- PyTuple_SET_ITEM(__pyx_k_tuple_68, 0, ((PyObject *)__pyx_kp_s_42));
- __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_42));
+ __Pyx_INCREF(((PyObject *)__pyx_kp_s_67));
+ PyTuple_SET_ITEM(__pyx_k_tuple_68, 0, ((PyObject *)__pyx_kp_s_67));
+ __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_67));
__Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_68));
- /* "pylibemu.pyx":1124
+ /* "pylibemu.pyx":1102
*
* if self._emu is NULL:
* raise RuntimeError('Emulator not initialized') # <<<<<<<<<<<<<<
*
* _mem = emu_memory_get(self._emu)
*/
- __pyx_k_tuple_70 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_70)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1124; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
+ __pyx_k_tuple_70 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_70)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1102; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(((PyObject *)__pyx_k_tuple_70));
__Pyx_INCREF(((PyObject *)__pyx_kp_s_42));
PyTuple_SET_ITEM(__pyx_k_tuple_70, 0, ((PyObject *)__pyx_kp_s_42));
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_42));
__Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_70));
- /* "pylibemu.pyx":1147
+ /* "pylibemu.pyx":1128
*
* if self._emu is NULL:
* raise RuntimeError('Emulator not initialized') # <<<<<<<<<<<<<<
*
* _mem = emu_memory_get(self._emu)
*/
- __pyx_k_tuple_71 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_71)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
- __Pyx_GOTREF(((PyObject *)__pyx_k_tuple_71));
+ __pyx_k_tuple_72 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_72)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1128; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
+ __Pyx_GOTREF(((PyObject *)__pyx_k_tuple_72));
__Pyx_INCREF(((PyObject *)__pyx_kp_s_42));
- PyTuple_SET_ITEM(__pyx_k_tuple_71, 0, ((PyObject *)__pyx_kp_s_42));
+ PyTuple_SET_ITEM(__pyx_k_tuple_72, 0, ((PyObject *)__pyx_kp_s_42));
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_42));
- __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_71));
+ __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_72));
- /* "pylibemu.pyx":1167
+ /* "pylibemu.pyx":1151
+ *
+ * if self._emu is NULL:
+ * raise RuntimeError('Emulator not initialized') # <<<<<<<<<<<<<<
+ *
+ * _mem = emu_memory_get(self._emu)
+ */
+ __pyx_k_tuple_73 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_73)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1151; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
+ __Pyx_GOTREF(((PyObject *)__pyx_k_tuple_73));
+ __Pyx_INCREF(((PyObject *)__pyx_kp_s_42));
+ PyTuple_SET_ITEM(__pyx_k_tuple_73, 0, ((PyObject *)__pyx_kp_s_42));
+ __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_42));
+ __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_73));
+
+ /* "pylibemu.pyx":1171
*
* if self._emu is NULL:
* raise RuntimeError('Emulator not initialized') # <<<<<<<<<<<<<<
*
* _env = emu_env_new(self._emu)
*/
- __pyx_k_tuple_72 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_72)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1167; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
- __Pyx_GOTREF(((PyObject *)__pyx_k_tuple_72));
+ __pyx_k_tuple_74 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_74)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1171; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
+ __Pyx_GOTREF(((PyObject *)__pyx_k_tuple_74));
__Pyx_INCREF(((PyObject *)__pyx_kp_s_42));
- PyTuple_SET_ITEM(__pyx_k_tuple_72, 0, ((PyObject *)__pyx_kp_s_42));
+ PyTuple_SET_ITEM(__pyx_k_tuple_74, 0, ((PyObject *)__pyx_kp_s_42));
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_42));
- __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_72));
+ __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_74));
- /* "pylibemu.pyx":1172
+ /* "pylibemu.pyx":1176
* if _env is NULL:
* print emu_strerror(self._emu)
* raise RuntimeError('Emulator environment error') # <<<<<<<<<<<<<<
*
* if emu_env_w32_eip_check(_env) is NULL:
*/
- __pyx_k_tuple_74 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_74)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1172; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
- __Pyx_GOTREF(((PyObject *)__pyx_k_tuple_74));
- __Pyx_INCREF(((PyObject *)__pyx_kp_s_73));
- PyTuple_SET_ITEM(__pyx_k_tuple_74, 0, ((PyObject *)__pyx_kp_s_73));
- __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_73));
- __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_74));
+ __pyx_k_tuple_76 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_76)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1176; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
+ __Pyx_GOTREF(((PyObject *)__pyx_k_tuple_76));
+ __Pyx_INCREF(((PyObject *)__pyx_kp_s_75));
+ PyTuple_SET_ITEM(__pyx_k_tuple_76, 0, ((PyObject *)__pyx_kp_s_75));
+ __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_75));
+ __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_76));
__Pyx_RefNannyFinishContext();
return 0;
__pyx_L1_error:;
@@ -9300,8 +9353,8 @@ PyMODINIT_FUNC PyInit_pylibemu(void)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 28; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
- if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_n_s__format), ((PyObject *)__pyx_kp_s_75)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 28; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
- if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_n_s__datefmt), ((PyObject *)__pyx_kp_s_76)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 28; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
+ if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_n_s__format), ((PyObject *)__pyx_kp_s_77)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 28; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
+ if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_n_s__datefmt), ((PyObject *)__pyx_kp_s_78)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 28; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_t_3 = PyEval_CallObjectWithKeywords(__pyx_t_2, ((PyObject *)__pyx_empty_tuple), ((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 28; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
@@ -9452,7 +9505,7 @@ PyMODINIT_FUNC PyInit_pylibemu(void)
* return self.emu_profile.truncate
*
*/
- __pyx_t_3 = __Pyx_GetName((PyObject *)__pyx_ptype_8pylibemu_Emulator, __pyx_n_s_77); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 594; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
+ __pyx_t_3 = __Pyx_GetName((PyObject *)__pyx_ptype_8pylibemu_Emulator, __pyx_n_s_79); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 594; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 593; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
@@ -9462,7 +9515,7 @@ PyMODINIT_FUNC PyInit_pylibemu(void)
__pyx_t_3 = PyObject_Call(__pyx_builtin_property, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 593; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
- if (PyDict_SetItem((PyObject *)__pyx_ptype_8pylibemu_Emulator->tp_dict, __pyx_n_s_77, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 594; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_8pylibemu_Emulator->tp_dict, __pyx_n_s_79, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 594; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
PyType_Modified(__pyx_ptype_8pylibemu_Emulator);

0 comments on commit 85040a2

Please sign in to comment.