Remove scilab and allegro specifics in 3 testcases

This commit is contained in:
William S Fulton 2013-09-17 21:04:33 +01:00
commit 5109e1fe12
3 changed files with 3 additions and 16 deletions

View file

@ -9,13 +9,9 @@ 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.
#if defined(SWIG_ALLEGRO_CL) || defined(SWIGSCILAB)
%{
#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."
static char *global_str = NULL;

View file

@ -73,12 +73,6 @@ see bottom for a set of possible tests
%rename(OrOperator) operator ||;
#endif
#if defined(SWIG_ALLEGRO_CL) || defined(SWIGSCILAB)
%{
#include <stdio.h>
%}
#endif
#ifdef SWIGD
// Due to the way operator overloading is implemented in D1 and D2, the prefix
// increment/decrement operators (D1) resp. the postfix ones (D2) are ignored.
@ -89,6 +83,7 @@ see bottom for a set of possible tests
%rename(DoubleCast) operator double();
%inline %{
#include <stdio.h>
#if defined(_MSC_VER)
#include <iso646.h> /* for named logical operator, eg 'operator or' */

View file

@ -2,13 +2,9 @@
// The default behavior is to simply ignore the varargs.
%module varargs_overload
#if defined(SWIGSCILAB)
%{
#include <stdio.h>
%}
#endif
%inline %{
#include <stdio.h>
const char *vararg_over1(const char *fmt, ...) {
return fmt;
}