From 4f55ff51ba61beaa46785243eeed9da29213734b Mon Sep 17 00:00:00 2001 From: Dave Beazley Date: Tue, 29 Aug 2000 14:40:10 +0000 Subject: [PATCH] Slight cleanup. Test of new CVS commit message. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@716 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Source/SWIG1.1/main.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Source/SWIG1.1/main.cxx b/Source/SWIG1.1/main.cxx index 707c0dc07..8e13be133 100644 --- a/Source/SWIG1.1/main.cxx +++ b/Source/SWIG1.1/main.cxx @@ -393,24 +393,21 @@ int SWIG_main(int argc, char *argv[], Language *l) { { DOH *cpps; int i; - String *path; String *fs = NewString(""); String *ds = Swig_include(input_file); if (!ds) { Printf(stderr,"Unable to find '%s'\n", input_file); SWIG_exit(1); } - path = Copy(Swig_last_file()); if (lang_config) { Printf(fs,"\n%%include \"%s\"\n", lang_config); } for (i = 0; i < Len(libfiles); i++) { Printf(fs,"\n%%include \"%s\"\n", Getitem(libfiles,i)); } - Printf(fs,"\n%%includefile \"%s\" {\n", path); + Printf(fs,"\n%%includefile \"%s\" {\n", Swig_last_file()); Append(fs, ds); Append(fs,"\n}\n"); - Delete(path); Delete(ds); Seek(fs,0,SEEK_SET); cpps = Preprocessor_parse(fs);