From 52638ec3e4e748b8baba1ade43779005f505a8a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20K=C3=B6ppe?= Date: Sun, 2 Nov 2003 18:38:04 +0000 Subject: [PATCH] Fix typos (class K, class T vs. class T, class u) and include exception.i git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5251 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Lib/guile/std_pair.i | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/SWIG/Lib/guile/std_pair.i b/SWIG/Lib/guile/std_pair.i index 6a1ab7318..a4babc459 100644 --- a/SWIG/Lib/guile/std_pair.i +++ b/SWIG/Lib/guile/std_pair.i @@ -6,7 +6,7 @@ // Guile implementation %include std_common.i - +%include exception.i // ------------------------------------------------------------------------ // std::pair @@ -22,7 +22,7 @@ namespace std { - template struct pair { + template struct pair { %typemap(in) pair (std::pair* m) { if (gh_pair_p($input)) { T* x; @@ -132,7 +132,7 @@ namespace std { second = gh_cdr($input); if (!CHECK(first)) SWIG_exception(SWIG_TypeError, - "map<" #K "," #T "> expected"); + "map<" #T "," #U "> expected"); y = (U*) SWIG_MustGetPtr(second,$descriptor(U *),$argnum, 0); $1 = std::make_pair(CONVERT_FROM(first),y); } else { @@ -151,7 +151,7 @@ namespace std { second = gh_cdr($input); if (!CHECK(first)) SWIG_exception(SWIG_TypeError, - "map<" #K "," #T "> expected"); + "map<" #T "," #U "> expected"); y = (U*) SWIG_MustGetPtr(second,$descriptor(U *),$argnum, 0); temp = std::make_pair(CONVERT_FROM(first),y); $1 = &temp; @@ -228,7 +228,7 @@ namespace std { x = (T*) SWIG_MustGetPtr(first,$descriptor(T *),$argnum, 0); if (!CHECK(second)) SWIG_exception(SWIG_TypeError, - "map<" #K "," #T "> expected"); + "map<" #T "," #U "> expected"); $1 = std::make_pair(x,CONVERT_FROM(second)); } else { $1 = *(($&1_type) @@ -247,7 +247,7 @@ namespace std { x = (T*) SWIG_MustGetPtr(first,$descriptor(T *),$argnum, 0); if (!CHECK(second)) SWIG_exception(SWIG_TypeError, - "map<" #K "," #T "> expected"); + "map<" #T "," #U "> expected"); temp = std::make_pair(x,CONVERT_FROM(second)); $1 = &temp; } else { @@ -322,7 +322,7 @@ namespace std { second = gh_cdr($input); if (!CHECK_T(first) || !CHECK_U(second)) SWIG_exception(SWIG_TypeError, - "map<" #K "," #T "> expected"); + "map<" #T "," #U "> expected"); $1 = std::make_pair(CONVERT_T_FROM(first), CONVERT_U_FROM(second)); } else { @@ -340,7 +340,7 @@ namespace std { second = gh_cdr($input); if (!CHECK_T(first) || !CHECK_U(second)) SWIG_exception(SWIG_TypeError, - "map<" #K "," #T "> expected"); + "map<" #T "," #U "> expected"); temp = std::make_pair(CONVERT_T_FROM(first), CONVERT_U_FROM(second)); $1 = &temp;