fix -external-runtime

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8654 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2006-01-31 00:02:58 +00:00
commit 0d6baa85ef
7 changed files with 226 additions and 165 deletions

View file

@ -1273,11 +1273,22 @@ public:
}
String *runtimeCode() {
String *s = Swig_include_sys("swigtcl8.swg");
if (!s) {
Printf(stderr, "*** Unable to open 'swigtcl8.swg'\n");
s = NewString("");
String *s = NewString("");
String *sapi = Swig_include_sys("tclapi.swg");
if (!sapi) {
Printf(stderr, "*** Unable to open 'tclapi.swg'\n");
} else {
Append(s, sapi);
Delete(sapi);
}
String *srun = Swig_include_sys("tclrun.swg");
if (!srun) {
Printf(stderr, "*** Unable to open 'tclrun.swg'\n");
} else {
Append(s, srun);
Delete(srun);
}
return s;
}