fix to work in plain C
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6271 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
99ab00fda5
commit
82f2ee5db5
2 changed files with 2 additions and 2 deletions
|
|
@ -9,7 +9,7 @@
|
|||
return 0;
|
||||
}
|
||||
|
||||
int nfile(const char *filename) {
|
||||
int nfile_name(const char *filename) {
|
||||
FILE *file = fopen(filename,"w");
|
||||
nfile(file);
|
||||
fclose(file);
|
||||
|
|
|
|||
|
|
@ -6,4 +6,4 @@ file_test.nfile(sys.stdout)
|
|||
cstdout = file_test.GetStdOut()
|
||||
|
||||
file_test.nfile(cstdout)
|
||||
file_test.nfile("test.dat")
|
||||
file_test.nfile_name("test.dat")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue