[allegrocl] Make type and namespace wrapping more compatible with other modules. cpp test-suite work.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10878 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Mikel Bancroft 2008-09-22 18:41:10 +00:00
commit e88b502bab
5 changed files with 178 additions and 88 deletions

View file

@ -9,21 +9,40 @@ srcdir = @srcdir@
top_srcdir = @top_srcdir@
top_builddir = @top_builddir@
# these cpp tests generate warnings/errors when compiling
# the wrapper .cxx file.
CPP_TEST_BROKEN_CXX = \
# might be a problem in our cxx wrapping. not sure. \
class_scope_weird \
# works as expected. must muffle warnings if you want none. \
# 'struct A' is not seen by SWIG, so it's type cannot be \
# derived \
# Look into cxx problems, though.
constant_pointers
# these cpp tests aren't working. Fix 'em
# need to further separate these into tests requiring
# std libraries, or the $ldestructor problem.
CPP_TEST_BROKEN_ACL = \
array_member \
# seems like a problem with the .i file. not enough includes. \
char_strings \
# not sure what this one is supposed to do. needs investigation. \
class_ignore \
constant_pointers \
contract \
# 'throws' typemap entries. \
cplusplus_throw \
# not sure. \
cpp_basic \
# redefinition of enum_members. Looks like a namespace problem. \
cpp_enum \
# works as expected. Bar is not seen by swig. muffle warning. \
cpp_typedef \
default_constructor \
# 'throws' typemap entries. \
default_args \
default_constructor \
dynamic_cast \
enum_thorough \
extend_variable \
@ -91,7 +110,13 @@ CPP_TEST_BROKEN_LONGLONG = \
# These are currently unsupported.
CPP_TEST_CASES_ACL_UNSUPPORTED = \
# contract support \
aggregate \
# directors and allprotected support \
allprotected \
# directors support \
apply_signed_char \
# contract support \
contract \
director_abstract \
director_basic \
@ -130,7 +155,7 @@ SKIP_CPP_STD_CASES = Yes
C_TEST_CASES =
CPP_TEST_CASES =
CPP_TEST_CASES =
include $(srcdir)/../common.mk

View file

@ -9,6 +9,12 @@ below.
%warnfilter(SWIGWARN_TYPEMAP_VARIN_UNDEF) global_char_array1; // Unable to set variable of type char[]
%warnfilter(SWIGWARN_TYPEMAP_CHARLEAK_MSG) global_const_char; // Setting a const char * variable may leak memory.
#ifdef SWIG_ALLEGRO_CL
%{
#include <stdio.h>
%}
#endif
%{
#define OTHERLAND_MSG "Little message from the safe world."
#define CPLUSPLUS_MSG "A message from the deep dark world of C++, where anything is possible."