diff options
author | Armin Rigo <arigo@tunes.org> | 2015-06-01 08:49:26 +0200 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2015-06-01 08:49:26 +0200 |
commit | d78afb31fbb9c242cb3ccd8d40572c071bd7b3ae (patch) | |
tree | bd8aa21119206169cac50c1a06e40f0571e224e2 /c/ffi_obj.c | |
parent | 533b6e7c4aa1c878615e11f3733c62f9a62e7e88 (diff) | |
download | cffi-d78afb31fbb9c242cb3ccd8d40572c071bd7b3ae.tar.gz |
Issue #203: add keyword arguments to ffi.string(), ffi.buffer(),
ffi.getwinerror()
Diffstat (limited to 'c/ffi_obj.c')
-rw-r--r-- | c/ffi_obj.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/c/ffi_obj.c b/c/ffi_obj.c index 4c107ed..134e303 100644 --- a/c/ffi_obj.c +++ b/c/ffi_obj.c @@ -774,7 +774,7 @@ static PyObject *ffi_int_const(FFIObject *self, PyObject *args, PyObject *kwds) static PyMethodDef ffi_methods[] = { {"addressof", (PyCFunction)ffi_addressof, METH_VARARGS, ffi_addressof_doc}, {"alignof", (PyCFunction)ffi_alignof, METH_O, ffi_alignof_doc}, - {"buffer", (PyCFunction)ffi_buffer, METH_VARARGS, ffi_buffer_doc}, + {"buffer", (PyCFunction)ffi_buffer, METH_VKW, ffi_buffer_doc}, {"callback", (PyCFunction)ffi_callback, METH_VKW, ffi_callback_doc}, {"cast", (PyCFunction)ffi_cast, METH_VARARGS, ffi_cast_doc}, {"dlclose", (PyCFunction)ffi_dlclose, METH_VARARGS, ffi_dlclose_doc}, @@ -784,14 +784,14 @@ static PyMethodDef ffi_methods[] = { {"gc", (PyCFunction)ffi_gc, METH_VKW, ffi_gc_doc}, {"getctype", (PyCFunction)ffi_getctype, METH_VKW, ffi_getctype_doc}, #ifdef MS_WIN32 - {"getwinerror",(PyCFunction)ffi_getwinerror,METH_VARARGS, ffi_getwinerror_doc}, + {"getwinerror",(PyCFunction)ffi_getwinerror,METH_VKW, ffi_getwinerror_doc}, #endif {"integer_const",(PyCFunction)ffi_int_const,METH_VKW, ffi_int_const_doc}, {"new", (PyCFunction)ffi_new, METH_VKW, ffi_new_doc}, {"new_handle", (PyCFunction)ffi_new_handle, METH_O, ffi_new_handle_doc}, {"offsetof", (PyCFunction)ffi_offsetof, METH_VARARGS, ffi_offsetof_doc}, {"sizeof", (PyCFunction)ffi_sizeof, METH_O, ffi_sizeof_doc}, - {"string", (PyCFunction)ffi_string, METH_VARARGS, ffi_string_doc}, + {"string", (PyCFunction)ffi_string, METH_VKW, ffi_string_doc}, {"typeof", (PyCFunction)ffi_typeof, METH_O, ffi_typeof_doc}, {NULL} }; |