示例#1
0
文件: executor.py 项目: Darriall/pypy
 def execute(self, space, cppmethod, cppthis, num_args, args):
     cstr_result = capi.c_call_s(space, cppmethod, cppthis, num_args, args)
     return space.wrap(capi.charp2str_free(space, cstr_result))
示例#2
0
文件: executor.py 项目: sota/pypy-old
 def execute(self, space, cppmethod, cppthis, num_args, args):
     cstr_result = capi.c_call_s(space, cppmethod, cppthis, num_args, args)
     return space.wrap(capi.charp2str_free(space, cstr_result))
示例#3
0
 def execute(self, space, cppmethod, cppthis, num_args, args):
     cstr, cstr_len = capi.c_call_s(space, cppmethod, cppthis, num_args, args)
     pystr = rffi.charpsize2str(cstr, cstr_len)
     capi.c_free(space, rffi.cast(rffi.VOIDP, cstr))
     return space.wrap(pystr)
示例#4
0
文件: executor.py 项目: fhalde/pypy
 def execute(self, space, cppmethod, cppthis, num_args, args):
     cstr, cstr_len = capi.c_call_s(space, cppmethod, cppthis, num_args,
                                    args)
     pystr = rffi.charpsize2str(cstr, cstr_len)
     capi.c_free(space, rffi.cast(rffi.VOIDP, cstr))
     return space.newbytes(pystr)