Suppress SWIG warnings
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10060 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
3b9574953c
commit
f14901c620
1 changed files with 7 additions and 9 deletions
|
|
@ -1,8 +1,11 @@
|
||||||
/* Test %apply for char *, signed char *, unsigned char * */
|
/* Test %apply for char *, signed char *, unsigned char *
|
||||||
|
This won't work in all situations, so does not necessarily have to be implemented. See
|
||||||
|
http://groups.google.com.ai/group/comp.lang.c++.moderated/browse_thread/thread/ad5873ce25d49324/0ae94552452366be?lnk=raot */
|
||||||
%module(directors="1") apply_strings
|
%module(directors="1") apply_strings
|
||||||
|
|
||||||
%warnfilter(SWIGWARN_TYPEMAP_THREAD_UNSAFE,SWIGWARN_TYPEMAP_DIRECTOROUT_PTR) DirectorTest;
|
%warnfilter(SWIGWARN_TYPEMAP_THREAD_UNSAFE,SWIGWARN_TYPEMAP_DIRECTOROUT_PTR) DirectorTest;
|
||||||
|
%warnfilter(SWIGWARN_TYPEMAP_VARIN_UNDEF) DigitsGlobalB;
|
||||||
|
%warnfilter(SWIGWARN_TYPEMAP_SWIGTYPELEAK) DigitsGlobalC;
|
||||||
|
|
||||||
%apply char * {UCharPtr};
|
%apply char * {UCharPtr};
|
||||||
%apply char * {SCharPtr};
|
%apply char * {SCharPtr};
|
||||||
|
|
@ -34,10 +37,9 @@
|
||||||
%}
|
%}
|
||||||
|
|
||||||
// unsigned char* as strings
|
// unsigned char* as strings
|
||||||
#if !defined(SWIGUTL)
|
#if defined(SWIGJAVA) || defined(SWIGCSHARP)
|
||||||
|
|
||||||
#if !defined(SWIGCHICKEN)
|
/* Note: Chicken does not allow unsigned char * in strings */
|
||||||
/* Chicken does not allow unsigned char * in strings */
|
|
||||||
|
|
||||||
%apply char [ANY] {TAscii[ANY]}
|
%apply char [ANY] {TAscii[ANY]}
|
||||||
%apply char [] {TAscii []}
|
%apply char [] {TAscii []}
|
||||||
|
|
@ -45,10 +47,6 @@
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#else
|
|
||||||
#warning "UTL needs fixing for these typemaps"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
%inline %{
|
%inline %{
|
||||||
typedef unsigned char TAscii;
|
typedef unsigned char TAscii;
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue