summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-09-01 15:27:35 (GMT)
committerGeorg Brandl <georg@python.org>2007-09-01 15:27:35 (GMT)
commitfb5d3675f8f4b6ee2c61131368e0fc3ccdf63d62 (patch)
tree989528c50cd3570a77c0b4b15fc6a293440fee8a
parent34cb852611566f49bcb90c87e7cd6dfebbcf1dff (diff)
downloadcpython-fb5d3675f8f4b6ee2c61131368e0fc3ccdf63d62.zip
cpython-fb5d3675f8f4b6ee2c61131368e0fc3ccdf63d62.tar.gz
cpython-fb5d3675f8f4b6ee2c61131368e0fc3ccdf63d62.tar.bz2
Use symbolic name for METH_VARARGS.
-rw-r--r--Mac/Modules/MacOS.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/Mac/Modules/MacOS.c b/Mac/Modules/MacOS.c
index 434c547..49215f5 100644
--- a/Mac/Modules/MacOS.c
+++ b/Mac/Modules/MacOS.c
@@ -214,11 +214,11 @@ rf_close(rfobject *self, PyObject *args)
static struct PyMethodDef rf_methods[] = {
- {"read", (PyCFunction)rf_read, 1, rf_read__doc__},
- {"write", (PyCFunction)rf_write, 1, rf_write__doc__},
- {"seek", (PyCFunction)rf_seek, 1, rf_seek__doc__},
- {"tell", (PyCFunction)rf_tell, 1, rf_tell__doc__},
- {"close", (PyCFunction)rf_close, 1, rf_close__doc__},
+ {"read", (PyCFunction)rf_read, METH_VARARGS, rf_read__doc__},
+ {"write", (PyCFunction)rf_write, METH_VARARGS, rf_write__doc__},
+ {"seek", (PyCFunction)rf_seek, METH_VARARGS, rf_seek__doc__},
+ {"tell", (PyCFunction)rf_tell, METH_VARARGS, rf_tell__doc__},
+ {"close", (PyCFunction)rf_close, METH_VARARGS, rf_close__doc__},
{NULL, NULL} /* sentinel */
};
@@ -584,15 +584,15 @@ MacOS_openrf(PyObject *self, PyObject *args)
static PyMethodDef MacOS_Methods[] = {
- {"GetCreatorAndType", MacOS_GetCreatorAndType, 1, getcrtp_doc},
- {"SetCreatorAndType", MacOS_SetCreatorAndType, 1, setcrtp_doc},
- {"GetErrorString", MacOS_GetErrorString, 1, geterr_doc},
- {"openrf", MacOS_openrf, 1, openrf_doc},
- {"splash", MacOS_splash, 1, splash_doc},
- {"DebugStr", MacOS_DebugStr, 1, DebugStr_doc},
- {"GetTicks", MacOS_GetTicks, 1, GetTicks_doc},
- {"SysBeep", MacOS_SysBeep, 1, SysBeep_doc},
- {"WMAvailable", MacOS_WMAvailable, 1, WMAvailable_doc},
+ {"GetCreatorAndType", MacOS_GetCreatorAndType, METH_VARARGS, getcrtp_doc},
+ {"SetCreatorAndType", MacOS_SetCreatorAndType, METH_VARARGS, setcrtp_doc},
+ {"GetErrorString", MacOS_GetErrorString, METH_VARARGS, geterr_doc},
+ {"openrf", MacOS_openrf, METH_VARARGS, openrf_doc},
+ {"splash", MacOS_splash, METH_VARARGS, splash_doc},
+ {"DebugStr", MacOS_DebugStr, METH_VARARGS, DebugStr_doc},
+ {"GetTicks", MacOS_GetTicks, METH_VARARGS, GetTicks_doc},
+ {"SysBeep", MacOS_SysBeep, METH_VARARGS, SysBeep_doc},
+ {"WMAvailable", MacOS_WMAvailable, METH_VARARGS, WMAvailable_doc},
{NULL, NULL} /* Sentinel */
};