Perl added to the Unified typemap library, cleaner way to use the library, and 'normalized' macro names

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7707 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2005-10-24 14:59:05 +00:00
commit 3c65cea431
112 changed files with 3262 additions and 3375 deletions

View file

@ -160,11 +160,11 @@ namespace swig {
*/
%define %typemap_traits(Code,Type...)
%typemap_asvalfrom(SWIG_arg(Code),
SWIG_arg(swig::asval<Type >),
SWIG_arg(swig::from),
SWIG_arg(SWIG_Traits_frag(Type)),
SWIG_arg(SWIG_Traits_frag(Type)),
%typemaps_asvalfrom(%arg(Code),
%arg(swig::asval<Type >),
%arg(swig::from),
%arg(SWIG_Traits_frag(Type)),
%arg(SWIG_Traits_frag(Type)),
Type);
%enddef
@ -174,11 +174,11 @@ namespace swig {
*/
%define %typemap_traits_ptr(Code,Type...)
%typemap_asptrfrom(SWIG_arg(Code),
SWIG_arg(swig::asptr),
SWIG_arg(swig::from),
SWIG_arg(SWIG_Traits_frag(Type)),
SWIG_arg(SWIG_Traits_frag(Type)),
%typemaps_asptrfrom(%arg(Code),
%arg(swig::asptr),
%arg(swig::from),
%arg(SWIG_Traits_frag(Type)),
%arg(SWIG_Traits_frag(Type)),
Type);
%enddef

View file

@ -37,7 +37,7 @@
%define %std_sequence_methods_common(sequence)
%std_container_methods(SWIG_arg(sequence));
%std_container_methods(%arg(sequence));
sequence(size_type size);
void pop_back();
@ -55,7 +55,7 @@
%define %std_sequence_methods(sequence)
%std_sequence_methods_common(SWIG_arg(sequence));
%std_sequence_methods_common(%arg(sequence));
sequence(size_type size, const value_type& value);
void push_back(const value_type& x);
@ -76,7 +76,7 @@
%define %std_sequence_methods_val(sequence...)
%std_sequence_methods_common(SWIG_arg(sequence));
%std_sequence_methods_common(%arg(sequence));
sequence(size_type size, value_type value);
void push_back(value_type x);