fix ifdefs for directors

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7738 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2005-10-26 14:09:58 +00:00
commit 3c5c038e86
7 changed files with 12 additions and 11 deletions

View file

@ -144,7 +144,7 @@
}
#ifdef SWIG_DIRECTOR_TYPEMAPS
#if defined(SWIG_DIRECTOR_TYPEMAPS)
/* directorin */
@ -157,7 +157,8 @@
/* directorout */
%typemap(directorout,noblock=1,fragment=#SWIG_AsCharPtr) Char * (Char* buf = 0, int alloc = 0) {
%typemap(directorout,noblock=1,fragment=#SWIG_AsCharPtr)
Char * (Char* buf = 0, int alloc = 0) {
if (SWIG_AsCharPtr($input, &buf, &alloc) != SWIG_OK) {
%dirout_fail(SWIG_TypeError, "$type");
}
@ -282,7 +283,7 @@
}
#ifdef SWIG_DIRECTOR_TYPEMAPS
#if defined(SWIG_DIRECTOR_TYPEMAPS)
/* directorin */
%typemap(directorin,fragment=#SWIG_FromCharPtrAndSize)
@ -346,7 +347,7 @@
%set_output(SWIG_FromCharPtrAndSize($1, $1_dim0));
}
#ifdef SWIG_DIRECTOR_TYPEMAPS
#if defined(SWIG_DIRECTOR_TYPEMAPS)
%typemap(directorin,noblock=1,fragment=#SWIG_FromCharPtrAndSize)
Char FIXSIZE[ANY], const Char FIXSIZE[ANY]