Skip to content

Commit

Permalink
Update swig, fix warnings, upgrade to 4.1.0 release (#315)
Browse files Browse the repository at this point in the history
  • Loading branch information
dumganhar authored Nov 18, 2022
1 parent 16e8e7f commit 749af56
Show file tree
Hide file tree
Showing 498 changed files with 9,126 additions and 5,064 deletions.
Binary file modified linux/bin/swig/bin/swig
Binary file not shown.
6 changes: 3 additions & 3 deletions linux/bin/swig/share/swig/4.1.0/allkw.swg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __Lib_allkw_swg__
#define __Lib_allkw_swg__
#ifndef SWIG_INCLUDED_LIB_ALLKW_SWG
#define SWIG_INCLUDED_LIB_ALLKW_SWG


/*
Expand Down Expand Up @@ -30,4 +30,4 @@
%include <tcl/tclkw.swg>


#endif //__Lib_allkw_swg__
#endif // SWIG_INCLUDED_LIB_ALLKW_SWG
294 changes: 0 additions & 294 deletions linux/bin/swig/share/swig/4.1.0/cffi/cffi.swg

This file was deleted.

4 changes: 2 additions & 2 deletions linux/bin/swig/share/swig/4.1.0/csharp/boost_intrusive_ptr.i
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
%}
%typemap(out, fragment="SWIG_intrusive_deleter") CONST TYPE %{
//plain value(out)
$1_ltype* resultp = new $1_ltype(($1_ltype &)$1);
$1_ltype* resultp = new $1_ltype($1);
intrusive_ptr_add_ref(resultp);
*(SWIG_SHARED_PTR_QNAMESPACE::shared_ptr< CONST TYPE > **)&$result = new SWIG_SHARED_PTR_QNAMESPACE::shared_ptr< CONST TYPE >(resultp, SWIG_intrusive_deleter< CONST TYPE >());
%}
Expand Down Expand Up @@ -372,7 +372,7 @@
}
$1 = *argp; %}
%typemap(out) CONST TYPE
%{ *(SWIG_SHARED_PTR_QNAMESPACE::shared_ptr< CONST TYPE > **)&$result = new SWIG_SHARED_PTR_QNAMESPACE::shared_ptr< CONST TYPE >(new $1_ltype(($1_ltype &)$1)); %}
%{ *(SWIG_SHARED_PTR_QNAMESPACE::shared_ptr< CONST TYPE > **)&$result = new SWIG_SHARED_PTR_QNAMESPACE::shared_ptr< CONST TYPE >(new $1_ltype($1)); %}

// plain pointer
%typemap(in) CONST TYPE * (SWIG_SHARED_PTR_QNAMESPACE::shared_ptr< CONST TYPE > *smartarg = 0) %{
Expand Down
6 changes: 3 additions & 3 deletions linux/bin/swig/share/swig/4.1.0/csharp/boost_shared_ptr.i
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
}
$1 = *argp; %}
%typemap(out) CONST TYPE
%{ $result = new SWIG_SHARED_PTR_QNAMESPACE::shared_ptr< CONST TYPE >(new $1_ltype(($1_ltype &)$1)); %}
%{ $result = new SWIG_SHARED_PTR_QNAMESPACE::shared_ptr< CONST TYPE >(new $1_ltype($1)); %}

%typemap(directorin) CONST TYPE
%{ $input = new SWIG_SHARED_PTR_QNAMESPACE::shared_ptr< CONST TYPE > (new $1_ltype((const $1_ltype &)$1)); %}
%{ $input = new SWIG_SHARED_PTR_QNAMESPACE::shared_ptr< CONST TYPE > (new $1_ltype(SWIG_STD_MOVE($1))); %}

%typemap(directorout) CONST TYPE
%{ if (!$input) {
Expand Down Expand Up @@ -122,7 +122,7 @@
%typemap(in) SWIG_SHARED_PTR_QNAMESPACE::shared_ptr< CONST TYPE > * ($*1_ltype tempnull)
%{ $1 = $input ? ($1_ltype)$input : &tempnull; %}
%typemap(out, fragment="SWIG_null_deleter") SWIG_SHARED_PTR_QNAMESPACE::shared_ptr< CONST TYPE > *
%{ $result = ($1 && *$1) ? new $*1_ltype(*($1_ltype)$1) : 0;
%{ $result = ($1 && *$1) ? new $*1_ltype(*$1) : 0;
if ($owner) delete $1; %}

%typemap(directorin) SWIG_SHARED_PTR_QNAMESPACE::shared_ptr< CONST TYPE > *
Expand Down
Loading

0 comments on commit 749af56

Please sign in to comment.