Author: Wim Lavrijsen <[email protected]>
Branch: reflex-support
Changeset: r63543:f28cfcf366f2
Date: 2013-04-21 21:54 -0700
http://bitbucket.org/pypy/pypy/changeset/f28cfcf366f2/
Log: more warnings removed (about 'promote' being ignored)
diff --git a/pypy/module/cppyy/capi/loadable_capi.py
b/pypy/module/cppyy/capi/loadable_capi.py
--- a/pypy/module/cppyy/capi/loadable_capi.py
+++ b/pypy/module/cppyy/capi/loadable_capi.py
@@ -332,7 +332,6 @@
args = [_Arg(l=cppmethod), _Arg(l=cppobject), _Arg(l=nargs),
_Arg(vp=cargs), _Arg(l=cppclass.handle)]
return _cdata_to_cobject(space, call_capi(space, 'call_o', args))
[email protected]_promote()
def c_get_methptr_getter(space, cppscope, index):
args = [_Arg(l=cppscope.handle), _Arg(l=index)]
return rffi.cast(C_METHPTRGETTER_PTR,
@@ -343,10 +342,10 @@
return _cdata_to_ptr(space, call_capi(space, 'allocate_function_args',
[_Arg(l=size)]))
def c_deallocate_function_args(space, cargs):
call_capi(space, 'deallocate_function_args', [_Arg(vp=cargs)])
[email protected]_promote()
[email protected]
def c_function_arg_sizeof(space):
return _cdata_to_size_t(space, call_capi(space, 'function_arg_sizeof', []))
[email protected]_promote()
[email protected]
def c_function_arg_typeoffset(space):
return _cdata_to_size_t(space, call_capi(space, 'function_arg_typeoffset',
[]))
@@ -368,22 +367,20 @@
def c_base_name(space, cppclass, base_index):
args = [_Arg(l=cppclass.handle), _Arg(l=base_index)]
return charp2str_free(space, call_capi(space, 'base_name', args))
[email protected]_promote()
[email protected]_promote('2')
def c_is_subtype(space, derived, base):
if derived == base:
return bool(1)
return space.bool_w(call_capi(space, 'is_subtype',
[_Arg(l=derived.handle), _Arg(l=base.handle)]))
[email protected]_promote()
[email protected]_promote('1,2,4')
def _c_base_offset(space, derived_h, base_h, address, direction):
args = [_Arg(l=derived_h), _Arg(l=base_h), _Arg(l=address),
_Arg(l=direction)]
return _cdata_to_size_t(space, call_capi(space, 'base_offset', args))
[email protected]_promote()
def c_base_offset(space, derived, base, address, direction):
if derived == base:
return rffi.cast(rffi.SIZE_T, 0)
return _c_base_offset(space, derived.handle, base.handle, address,
direction)
[email protected]_promote()
def c_base_offset1(space, derived_h, base, address, direction):
return _c_base_offset(space, derived_h, base.handle, address, direction)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit