diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2002-01-17 23:15:58 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2002-01-17 23:15:58 (GMT) |
commit | 43b936d08c51726205123ae1af5c5f8b5d3b6fcb (patch) | |
tree | 1c3e3fd7ec72d71f92f1f0480291c5efc7f19eaf /Modules/fmmodule.c | |
parent | c0e1671c71dfcf25c8584b06a2e9584a8806a325 (diff) | |
download | cpython-43b936d08c51726205123ae1af5c5f8b5d3b6fcb.zip cpython-43b936d08c51726205123ae1af5c5f8b5d3b6fcb.tar.gz cpython-43b936d08c51726205123ae1af5c5f8b5d3b6fcb.tar.bz2 |
Patch #477750: Use METH_ constants in Modules.
Diffstat (limited to 'Modules/fmmodule.c')
-rw-r--r-- | Modules/fmmodule.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/Modules/fmmodule.c b/Modules/fmmodule.c index a2eb9c6..ecd96d5 100644 --- a/Modules/fmmodule.c +++ b/Modules/fmmodule.c @@ -126,15 +126,15 @@ fh_getstrwidth(fhobject *self, PyObject *args) } static PyMethodDef fh_methods[] = { - {"scalefont", (PyCFunction)fh_scalefont}, - {"setfont", (PyCFunction)fh_setfont}, - {"getfontname", (PyCFunction)fh_getfontname}, - {"getcomment", (PyCFunction)fh_getcomment}, - {"getfontinfo", (PyCFunction)fh_getfontinfo}, + {"scalefont", (PyCFunction)fh_scalefont, METH_OLDARGS}, + {"setfont", (PyCFunction)fh_setfont, METH_OLDARGS}, + {"getfontname", (PyCFunction)fh_getfontname, METH_OLDARGS}, + {"getcomment", (PyCFunction)fh_getcomment, METH_OLDARGS}, + {"getfontinfo", (PyCFunction)fh_getfontinfo, METH_OLDARGS}, #if 0 - {"getwholemetrics", (PyCFunction)fh_getwholemetrics}, + {"getwholemetrics", (PyCFunction)fh_getwholemetrics, METH_OLDARGS}, #endif - {"getstrwidth", (PyCFunction)fh_getstrwidth}, + {"getstrwidth", (PyCFunction)fh_getstrwidth, METH_OLDARGS}, {NULL, NULL} /* sentinel */ }; @@ -258,12 +258,12 @@ fm_fontpath(PyObject *self, PyObject *args) } static PyMethodDef fm_methods[] = { - {"init", fm_init}, - {"findfont", fm_findfont}, - {"enumerate", fm_enumerate}, - {"prstr", fm_prstr}, - {"setpath", fm_setpath}, - {"fontpath", fm_fontpath}, + {"init", fm_init, METH_OLDARGS}, + {"findfont", fm_findfont, METH_OLDARGS}, + {"enumerate", fm_enumerate, METH_OLDARGS}, + {"prstr", fm_prstr, METH_OLDARGS}, + {"setpath", fm_setpath, METH_OLDARGS}, + {"fontpath", fm_fontpath, METH_OLDARGS}, {NULL, NULL} /* sentinel */ }; |