modify test-suite (barring python atm) to not rely on the -I path to find the input .i file - removes the new warning 125 and sets up the test-suite for testing with ccache. This change required the use of -outcurrentdir and moving the .i files from the language subdirectories to the directory above along with some .i file name changes.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10949 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2008-11-26 21:35:15 +00:00
commit db83e51441
61 changed files with 390 additions and 709 deletions

View file

@ -11,15 +11,12 @@ top_builddir = @top_builddir@
CPP_TEST_CASES += \
primitive_types \
li_cdata \
li_cstring \
li_cwstring
C_TEST_CASES += \
li_cdata \
li_cstring \
li_cwstring \
union
li_cwstring
include $(srcdir)/../common.mk

View file

@ -1,41 +0,0 @@
%module unions
%inline %{
typedef unsigned char Uint8;
typedef struct SDL_ActiveEvent {
Uint8 type; /* SDL_ACTIVEEVENT */
Uint8 gain; /* Whether given states were gained or lost (1/0) */
Uint8 state; /* A mask of the focus states */
} SDL_ActiveEvent;
/* Keyboard event structure */
typedef struct SDL_KeyboardEvent {
Uint8 type; /* SDL_KEYDOWN or SDL_KEYUP */
int which; /* The keyboard device index */
int state; /* SDL_PRESSED or SDL_RELEASED */
} SDL_KeyboardEvent;
typedef union {
Uint8 type;
SDL_ActiveEvent active;
SDL_KeyboardEvent key;
} SDL_Event;
int SDL_PollEvent (SDL_Event *ev) {
static int toggle = 0;
if (toggle == 0) {
ev->type = 1;
ev->active.gain = 20;
ev->active.state = 30;
} else {
ev->type = 2;
ev->key.which = 2000;
ev->key.state = 3000;
}
toggle = 1 - toggle;
return 1;
}
%}

0
Examples/test-suite/tcl/union_runme.tcl Executable file → Normal file
View file