Modified parameter handling using typemaps. 'Reference' example. Visibility hint now applies only to the global functions.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2008-maciekd@10603 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Maciej Drwal 2008-06-28 16:22:07 +00:00
commit f84342a301
13 changed files with 205 additions and 36 deletions

View file

@ -0,0 +1,22 @@
/* -----------------------------------------------------------------------------
* See the LICENSE file for information on copyright, usage and redistribution
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
*
* c.swg
* ----------------------------------------------------------------------------- */
%typemap(ctype) short "short"
%typemap(ctype) int "int"
%typemap(ctype) long "long"
%typemap(ctype) char "char"
%typemap(ctype) float "float"
%typemap(ctype) double "double"
%typemap(ctype) bool "_Bool"
%typemap(ctype) SWIGTYPE "struct $*1_typeObj *"
%typemap(in) short, int, long, char, float, double, bool "$1 = $input;"
%typemap(in) SWIGTYPE {
$1 = ($1_type) $input->obj;
}