From 5c62c8cda28c3fd3402d83f700c93bb272f8fa08 Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Fri, 23 Jan 2004 00:25:42 +0000 Subject: [PATCH] fix typos git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5676 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Lib/python/python.swg | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Lib/python/python.swg b/Lib/python/python.swg index 13a794d22..0c49717bd 100644 --- a/Lib/python/python.swg +++ b/Lib/python/python.swg @@ -417,14 +417,14 @@ /* directorin typemaps */ /* Primitive datatypes. These only supply a parse code to PyObject_CallMethod */ -%define %typemapdirectorin_pyfunc(type, _pyfunc) -%typemap(directorin) _type "$input = _pyfunc(($1_ltype) $1_name);"; -%typemap(directorin) _type "$input = _pyfunc(($*1_ltype) $1_name);"; +%define %typemapdirectorin_pyfunc(type, pyfunc) +%typemap(directorin) type "$input = pyfunc(($1_ltype) $1_name);"; +%typemap(directorin) type "$input = pyfunc(($*1_ltype) $1_name);"; %enddef -%define %typemapdirectorin_parse(_type, _parse) - %typemap(directorin,parse=_parse) _type "($1_ltype) $1_name"; - %typemap(directorin,parse=_parse) const _type& "($*1_ltype) $1_name"; +%define %typemapdirectorin_parse(type, p) + %typemap(directorin,parse=p) type "($1_ltype) $1_name"; + %typemap(directorin,parse=p) const type& "($*1_ltype) $1_name"; %enddef %typemapdirectorin_parse(bool, "i"); @@ -606,7 +606,7 @@ DIRECTOROUT_TYPEMAP(PyObject *, ); %typecheck_pyfunc(UINT16, unsigned short, SPyObj_AsUnsignedShort); %typecheck_pyfunc(INT32, int, SPyObj_AsInt); %typecheck_pyfunc(UINT32, unsigned int, SPyObj_AsUnsignedInt); -%typecheck_pyfunc(INTEGER, unsigned long, SPyObj_AsUnsginedLong); +%typecheck_pyfunc(INTEGER, unsigned long, SPyObj_AsUnsignedLong); %typecheck_pyfunc(INTEGER, unsigned long long, SPyObj_AsUnsignedLongLong); %typecheck_pyfunc(CHAR, char, SPyObj_AsChar); %typecheck_pyfunc(FLOAT, float, SPyObj_AsFloat);