Modifications to work on MacOS, submitted by Bernard Desgraupes.

Mainly ensuring the files are output in the appropriate directory.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4203 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2002-12-16 21:20:53 +00:00
commit 01033bcdf3
3 changed files with 33 additions and 19 deletions

View file

@ -204,8 +204,16 @@ public:
Printv(mlfile,module,".ml",NIL);
Printv(mlifile,module,".mli",NIL);
f_mlout = NewFile(mlfile,"w");
f_mliout = NewFile(mlifile,"w");
String *mlfilen = NewStringf("%s%s", Swig_file_dirname(outfile),mlfile);
if ((f_mlout = NewFile(mlfilen,"w")) == 0) {
Printf(stderr,"Unable to open %s\n", mlfilen);
SWIG_exit (EXIT_FAILURE);
}
String *mlifilen = NewStringf("%s%s", Swig_file_dirname(outfile),mlifile);
if ((f_mliout = NewFile(mlifilen,"w")) == 0) {
Printf(stderr,"Unable to open %s\n", mlifilen);
SWIG_exit (EXIT_FAILURE);
}
Language::top(n);