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:
parent
644b2e7d16
commit
016860e199
5 changed files with 24 additions and 6 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue