Fix regression introduced in swig-2.0.2 where filenames with spaces were not found when used with %include and %import
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12546 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
7709e0303a
commit
f5feb6cc24
8 changed files with 69 additions and 19 deletions
|
|
@ -6,6 +6,8 @@
|
|||
int multiply10(int a) { return a*10; }
|
||||
int multiply20(int a) { return a*20; }
|
||||
int multiply30(int a) { return a*30; }
|
||||
int multiply40(int a) { return a*40; }
|
||||
int multiply50(int a) { return a*50; }
|
||||
%}
|
||||
|
||||
#define INCLUDE_B preproc_include_b.h
|
||||
|
|
@ -16,3 +18,20 @@ int multiply30(int a) { return a*30; }
|
|||
// Note that this test uses -includeall, so including preproc_include_b.h also includes preproc_include_c.h
|
||||
%include INCLUDE_B
|
||||
|
||||
%include"preproc_include_d withspace.h"
|
||||
|
||||
#define INCLUDE_E "preproc_include_e withspace.h"
|
||||
|
||||
%include INCLUDE_E
|
||||
|
||||
%inline %{
|
||||
#define INCLUDE_F /*comments*/ "preproc_include_f withspace.h"/*testing*/
|
||||
#include INCLUDE_F
|
||||
#include /*oooo*/"preproc_include_g.h"/*ahhh*/
|
||||
%}
|
||||
|
||||
%{
|
||||
int multiply60(int a) { return a*60; }
|
||||
int multiply70(int a) { return a*70; }
|
||||
%}
|
||||
|
||||
|
|
|
|||
3
Examples/test-suite/preproc_include_d withspace.h
Normal file
3
Examples/test-suite/preproc_include_d withspace.h
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
int multiply40(int a);
|
||||
|
||||
3
Examples/test-suite/preproc_include_e withspace.h
Normal file
3
Examples/test-suite/preproc_include_e withspace.h
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
int multiply50(int a);
|
||||
|
||||
3
Examples/test-suite/preproc_include_f withspace.h
Normal file
3
Examples/test-suite/preproc_include_f withspace.h
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
int multiply60(int a);
|
||||
|
||||
3
Examples/test-suite/preproc_include_g.h
Normal file
3
Examples/test-suite/preproc_include_g.h
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
int multiply70(int a);
|
||||
|
||||
|
|
@ -9,3 +9,15 @@ if preproc_include.multiply20(10) != 200:
|
|||
if preproc_include.multiply30(10) != 300:
|
||||
raise RuntimeError
|
||||
|
||||
if preproc_include.multiply40(10) != 400:
|
||||
raise RuntimeError
|
||||
|
||||
if preproc_include.multiply50(10) != 500:
|
||||
raise RuntimeError
|
||||
|
||||
if preproc_include.multiply60(10) != 600:
|
||||
raise RuntimeError
|
||||
|
||||
if preproc_include.multiply70(10) != 700:
|
||||
raise RuntimeError
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue