diff --git a/Lib/guile/std_map.i b/Lib/guile/std_map.i index fefbe2e77..489acc187 100644 --- a/Lib/guile/std_map.i +++ b/Lib/guile/std_map.i @@ -41,7 +41,7 @@ namespace std { template class map { - %typemap(in) map (std::map* m) { + %typemap(in) map { if (scm_is_null($input)) { $1 = std::map< K, T >(); } else if (scm_is_pair($input)) { @@ -72,10 +72,8 @@ namespace std { SWIG_MustGetPtr($input,$&1_descriptor,$argnum, 0)); } } - %typemap(in) const map& (std::map temp, - std::map* m), - const map* (std::map temp, - std::map* m) { + %typemap(in) const map& (std::map temp), + const map* (std::map temp) { if (scm_is_null($input)) { temp = std::map< K, T >(); $1 = &temp; @@ -266,7 +264,7 @@ namespace std { %define specialize_std_map_on_key(K,CHECK,CONVERT_FROM,CONVERT_TO) template class map { - %typemap(in) map (std::map* m) { + %typemap(in) map { if (scm_is_null($input)) { $1 = std::map< K, T >(); } else if (scm_is_pair($input)) { @@ -298,10 +296,8 @@ namespace std { SWIG_MustGetPtr($input,$&1_descriptor,$argnum, 0)); } } - %typemap(in) const map& (std::map temp, - std::map* m), - const map* (std::map temp, - std::map* m) { + %typemap(in) const map& (std::map temp), + const map* (std::map temp) { if (scm_is_null($input)) { temp = std::map< K, T >(); $1 = &temp; @@ -480,7 +476,7 @@ namespace std { %define specialize_std_map_on_value(T,CHECK,CONVERT_FROM,CONVERT_TO) template class map { - %typemap(in) map (std::map* m) { + %typemap(in) map { if (scm_is_null($input)) { $1 = std::map< K, T >(); } else if (scm_is_pair($input)) { @@ -511,10 +507,8 @@ namespace std { SWIG_MustGetPtr($input,$&1_descriptor,$argnum, 0)); } } - %typemap(in) const map& (std::map temp, - std::map* m), - const map* (std::map temp, - std::map* m) { + %typemap(in) const map& (std::map temp), + const map* (std::map temp) { if (scm_is_null($input)) { temp = std::map< K, T >(); $1 = &temp; @@ -567,7 +561,6 @@ namespace std { K* k; SCM head = SCM_CAR($input); if (scm_is_pair(head)) { - SCM key = SCM_CAR(head); SCM val = SCM_CDR(head); if (SWIG_ConvertPtr(val,(void **) &k, $descriptor(K *), 0) != 0) { @@ -609,7 +602,6 @@ namespace std { K* k; SCM head = SCM_CAR($input); if (scm_is_pair(head)) { - SCM key = SCM_CAR(head); SCM val = SCM_CDR(head); if (SWIG_ConvertPtr(val,(void **) &k, $descriptor(K *), 0) != 0) { @@ -692,7 +684,7 @@ namespace std { %define specialize_std_map_on_both(K,CHECK_K,CONVERT_K_FROM,CONVERT_K_TO, T,CHECK_T,CONVERT_T_FROM,CONVERT_T_TO) template<> class map { - %typemap(in) map (std::map* m) { + %typemap(in) map { if (scm_is_null($input)) { $1 = std::map< K, T >(); } else if (scm_is_pair($input)) { @@ -725,10 +717,8 @@ namespace std { SWIG_MustGetPtr($input,$&1_descriptor,$argnum, 0)); } } - %typemap(in) const map& (std::map temp, - std::map* m), - const map* (std::map temp, - std::map* m) { + %typemap(in) const map& (std::map temp), + const map* (std::map temp) { if (scm_is_null($input)) { temp = std::map< K, T >(); $1 = &temp;