Fixed the include/import error reported by Kerim Borchaev

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5359 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2003-11-20 21:37:24 +00:00
commit 016860e199
5 changed files with 24 additions and 6 deletions

View file

@ -1,5 +1,17 @@
Version 1.3.20 (In progress)
============================
11/20/2003: mmatus
Fixed the include/import error reported by Kerim Borchaev,
where two files with names like
'dir1/hello.i'
'dir2/hello.i'
can not be include at the same time. Swig was including
just the first one, assuming the second one was not a
different one, since it was checking/keeping just the
basename 'hello.i'.
11/19/2003: beazley
Changes to the SWIG runtime library support.
- The -c command line option has been renamed to -noruntime

View file

@ -56,8 +56,7 @@ CPP_TEST_BROKEN += \
using_namespace
# Broken C test cases. (Can be run individually using make testcase.ctest.)
C_TEST_BROKEN += \
inctest.i
C_TEST_BROKEN +=
# C++ test cases. (Can be run individually using make testcase.cpptest.)
@ -276,6 +275,7 @@ C_TEST_CASES += \
defines \
enums \
function_typedef \
inctest.i \
lib_carrays \
lib_cdata \
lib_cmalloc \

View file

@ -1,5 +1,6 @@
import inctest
error = 0
try:
a = inctest.A()
except:

View file

@ -1 +1,2 @@
%include "hello.i"
%include "hello.i"

View file

@ -78,11 +78,15 @@ copy_location(DOH *s1, DOH *s2) {
static String *cpp_include(String_or_char *fn) {
String *s;
if (single_include) {
if (Getattr(included_files,fn)) return 0;
Setattr(included_files,fn,fn);
}
s = Swig_include(fn);
if (single_include) {
String *file = Getfile(s);
if (Getattr(included_files,file)) {
Delete(s);
return 0;
}
Setattr(included_files,file,file);
}
if (!s) {
Seek(fn,0,SEEK_SET);
if (ignore_missing) {