fix missing filename in macro warning
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8189 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
fa649ba317
commit
306d7f4ffd
1 changed files with 4 additions and 1 deletions
|
|
@ -271,13 +271,16 @@ static String *
|
||||||
Swig_include_any(const String_or_char *name, int sysfile) {
|
Swig_include_any(const String_or_char *name, int sysfile) {
|
||||||
FILE *f;
|
FILE *f;
|
||||||
String *str;
|
String *str;
|
||||||
|
String *file;
|
||||||
|
|
||||||
f = Swig_open_any(name, sysfile);
|
f = Swig_open_any(name, sysfile);
|
||||||
if (!f) return 0;
|
if (!f) return 0;
|
||||||
str = Swig_read_file(f);
|
str = Swig_read_file(f);
|
||||||
fclose(f);
|
fclose(f);
|
||||||
Seek(str,0,SEEK_SET);
|
Seek(str,0,SEEK_SET);
|
||||||
Setfile(str,lastpath);
|
file = Copy(lastpath);
|
||||||
|
Setfile(str,file);
|
||||||
|
Delete(file);
|
||||||
Setline(str,1);
|
Setline(str,1);
|
||||||
return str;
|
return str;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue