fix missing filename in macro warning
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8189 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
0c9343b54f
commit
3a0ad64776
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) {
|
||||
FILE *f;
|
||||
String *str;
|
||||
String *file;
|
||||
|
||||
f = Swig_open_any(name, sysfile);
|
||||
if (!f) return 0;
|
||||
str = Swig_read_file(f);
|
||||
fclose(f);
|
||||
Seek(str,0,SEEK_SET);
|
||||
Setfile(str,lastpath);
|
||||
file = Copy(lastpath);
|
||||
Setfile(str,file);
|
||||
Delete(file);
|
||||
Setline(str,1);
|
||||
return str;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue