diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2000-12-10 23:43:49 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2000-12-10 23:43:49 (GMT) |
commit | f7d5aa61d34cb7816ead2757860e5a66f7da0dcb (patch) | |
tree | faba3f23c2f0fdfa74a156d441f6fa8945c337f8 /Mac/Modules/fm | |
parent | c6c283840316dec54244b311657511e95e742eb0 (diff) | |
download | cpython-f7d5aa61d34cb7816ead2757860e5a66f7da0dcb.zip cpython-f7d5aa61d34cb7816ead2757860e5a66f7da0dcb.tar.gz cpython-f7d5aa61d34cb7816ead2757860e5a66f7da0dcb.tar.bz2 |
Adapted to Universal Headers 3.3.2. More to follow.
Diffstat (limited to 'Mac/Modules/fm')
-rw-r--r-- | Mac/Modules/fm/Fmmodule.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/Mac/Modules/fm/Fmmodule.c b/Mac/Modules/fm/Fmmodule.c index 6d1c507..0d66d16 100644 --- a/Mac/Modules/fm/Fmmodule.c +++ b/Mac/Modules/fm/Fmmodule.c @@ -319,14 +319,14 @@ static PyObject *Fm_SetAntiAliasedTextEnabled(_self, _args) { PyObject *_res = NULL; OSStatus _err; - Boolean inEnable; - SInt16 inMinFontSize; + Boolean iEnable; + SInt16 iMinFontSize; if (!PyArg_ParseTuple(_args, "bh", - &inEnable, - &inMinFontSize)) + &iEnable, + &iMinFontSize)) return NULL; - _err = SetAntiAliasedTextEnabled(inEnable, - inMinFontSize); + _err = SetAntiAliasedTextEnabled(iEnable, + iMinFontSize); if (_err != noErr) return PyMac_Error(_err); Py_INCREF(Py_None); _res = Py_None; @@ -339,13 +339,13 @@ static PyObject *Fm_IsAntiAliasedTextEnabled(_self, _args) { PyObject *_res = NULL; Boolean _rv; - SInt16 outMinFontSize; + SInt16 oMinFontSize; if (!PyArg_ParseTuple(_args, "")) return NULL; - _rv = IsAntiAliasedTextEnabled(&outMinFontSize); + _rv = IsAntiAliasedTextEnabled(&oMinFontSize); _res = Py_BuildValue("bh", _rv, - outMinFontSize); + oMinFontSize); return _res; } @@ -394,9 +394,9 @@ static PyMethodDef Fm_methods[] = { {"GetAppFont", (PyCFunction)Fm_GetAppFont, 1, "() -> (short _rv)"}, {"SetAntiAliasedTextEnabled", (PyCFunction)Fm_SetAntiAliasedTextEnabled, 1, - "(Boolean inEnable, SInt16 inMinFontSize) -> None"}, + "(Boolean iEnable, SInt16 iMinFontSize) -> None"}, {"IsAntiAliasedTextEnabled", (PyCFunction)Fm_IsAntiAliasedTextEnabled, 1, - "() -> (Boolean _rv, SInt16 outMinFontSize)"}, + "() -> (Boolean _rv, SInt16 oMinFontSize)"}, {NULL, NULL, 0} }; @@ -416,7 +416,7 @@ void initFm() Fm_Error = PyMac_GetOSErrException(); if (Fm_Error == NULL || PyDict_SetItemString(d, "Error", Fm_Error) != 0) - Py_FatalError("can't initialize Fm.Error"); + return; } /* ========================= End module Fm ========================== */ |