Fix -co option which broke in 1.3.37 SF #2605955

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11135 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2009-02-20 20:55:16 +00:00
commit 531c4454b8
2 changed files with 4 additions and 1 deletions

View file

@ -1,6 +1,9 @@
Version 1.3.39 (in progress) Version 1.3.39 (in progress)
============================ ============================
2008-02-20: wsfulton
Fix SF #2605955: -co option which broke in 1.3.37.
2008-02-20: wsfulton 2008-02-20: wsfulton
New %insert("begin") section added. Also can be used as %begin. This is a new New %insert("begin") section added. Also can be used as %begin. This is a new
code section reserved entirely for users and the code within the section is generated code section reserved entirely for users and the code within the section is generated

View file

@ -955,7 +955,7 @@ int SWIG_main(int argc, char *argv[], Language *l) {
if (!s) { if (!s) {
Printf(stderr, "Unable to locate '%s' in the SWIG library.\n", input_file); Printf(stderr, "Unable to locate '%s' in the SWIG library.\n", input_file);
} else { } else {
FILE *f = Swig_include_open(outfile); FILE *f = Swig_open(outfile);
if (f) { if (f) {
fclose(f); fclose(f);
Printf(stderr, "File '%s' already exists. Checkout aborted.\n", outfile); Printf(stderr, "File '%s' already exists. Checkout aborted.\n", outfile);