From 531c4454b8b4ffffcda7ffd62811a83a6f364d10 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Fri, 20 Feb 2009 20:55:16 +0000 Subject: [PATCH] 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 --- CHANGES.current | 3 +++ Source/Modules/main.cxx | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGES.current b/CHANGES.current index 9c1c2ae83..3cb7b2de4 100644 --- a/CHANGES.current +++ b/CHANGES.current @@ -1,6 +1,9 @@ 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 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 diff --git a/Source/Modules/main.cxx b/Source/Modules/main.cxx index 4603ac339..c824db6f9 100644 --- a/Source/Modules/main.cxx +++ b/Source/Modules/main.cxx @@ -955,7 +955,7 @@ int SWIG_main(int argc, char *argv[], Language *l) { if (!s) { Printf(stderr, "Unable to locate '%s' in the SWIG library.\n", input_file); } else { - FILE *f = Swig_include_open(outfile); + FILE *f = Swig_open(outfile); if (f) { fclose(f); Printf(stderr, "File '%s' already exists. Checkout aborted.\n", outfile);