Fix UTL typecheck macro for a function taking char[] or const

char[] (SF#1820132).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10043 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Olly Betts 2007-10-25 23:05:32 +00:00
commit d1dabb7231
2 changed files with 6 additions and 2 deletions

View file

@ -1,6 +1,10 @@
Version 1.3.32 (in progress) Version 1.3.32 (in progress)
============================ ============================
10/25/2007: olly
Fix UTL typecheck macro for a function taking char[] or const
char[] (SF#1820132).
10/22/2007: mkoeppe 10/22/2007: mkoeppe
[Guile] Filter out -ansi -pedantic from CFLAGS while compiling test programs for Guile [Guile] Filter out -ansi -pedantic from CFLAGS while compiling test programs for Guile
in configure. This enables running the test suite for Guile if it is installed and in configure. This enables running the test suite for Guile if it is installed and

View file

@ -236,7 +236,7 @@
/* ------------------------------------------------------------ /* ------------------------------------------------------------
* Fix size Character array Char[ANY] handling * Fixed size Character array Char[ANY] handling
* ------------------------------------------------------------ */ * ------------------------------------------------------------ */
/* memberin and globalin typemaps */ /* memberin and globalin typemaps */
@ -354,7 +354,7 @@
%typemap(typecheck,noblock=1,precedence=StringCode, %typemap(typecheck,noblock=1,precedence=StringCode,
fragment=#SWIG_AsCharArray) fragment=#SWIG_AsCharArray)
Char [ANY], const Char[ANY] { Char [ANY], const Char[ANY] {
int res = SWIG_AsCharArray($input, (Char *)0, $1_dim0); int res = SWIG_AsCharArray($input, (Char *)0, 0);
$1 = SWIG_CheckState(res); $1 = SWIG_CheckState(res);
} }