fix -external-runtime and warning arounds in subversion
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8666 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
872422e8eb
commit
dbdcf4462c
22 changed files with 98 additions and 83 deletions
|
|
@ -370,6 +370,13 @@ static void SWIG_dump_runtime() {
|
|||
Printf(runtime, "%s", s);
|
||||
Delete(s);
|
||||
|
||||
s = Swig_include_sys("swigerrors.swg");
|
||||
if (!s) {
|
||||
Printf(stderr, "*** Unable to open 'swigerrors.swg'\n");
|
||||
Close(runtime);
|
||||
SWIG_exit(EXIT_FAILURE);
|
||||
}
|
||||
Printf(runtime, "%s", s);
|
||||
s = Swig_include_sys("swigrun.swg");
|
||||
if (!s) {
|
||||
Printf(stderr, "*** Unable to open 'swigrun.swg'\n");
|
||||
|
|
|
|||
|
|
@ -1668,10 +1668,20 @@ public:
|
|||
}
|
||||
|
||||
String *runtimeCode() {
|
||||
String *s = Swig_include_sys("perlrun.swg");
|
||||
if (!s) {
|
||||
String *s = NewString("");
|
||||
String *serrors = Swig_include_sys("perlerrors.swg");
|
||||
if (!serrors) {
|
||||
Printf(stderr, "*** Unable to open 'perlerrors.swg'\n");
|
||||
} else {
|
||||
Append(s, serrors);
|
||||
Delete(serrors);
|
||||
}
|
||||
String *srun = Swig_include_sys("perlrun.swg");
|
||||
if (!srun) {
|
||||
Printf(stderr, "*** Unable to open 'perlrun.swg'\n");
|
||||
s = NewString("");
|
||||
} else {
|
||||
Append(s, srun);
|
||||
Delete(srun);
|
||||
}
|
||||
return s;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3172,6 +3172,13 @@ public:
|
|||
Append(s, shead);
|
||||
Delete(shead);
|
||||
}
|
||||
String *serrors = Swig_include_sys("pyerrors.swg");
|
||||
if (!serrors) {
|
||||
Printf(stderr, "*** Unable to open 'pyerrors.swg'\n");
|
||||
} else {
|
||||
Append(s, serrors);
|
||||
Delete(serrors);
|
||||
}
|
||||
String *sthread = Swig_include_sys("pythreads.swg");
|
||||
if (!sthread) {
|
||||
Printf(stderr, "*** Unable to open 'pythreads.swg'\n");
|
||||
|
|
|
|||
|
|
@ -2644,6 +2644,13 @@ public:
|
|||
Append(s, shead);
|
||||
Delete(shead);
|
||||
}
|
||||
String *serrors = Swig_include_sys("rubyerrors.swg");
|
||||
if (!serrors) {
|
||||
Printf(stderr, "*** Unable to open 'rubyerrors.swg'\n");
|
||||
} else {
|
||||
Append(s, serrors);
|
||||
Delete(serrors);
|
||||
}
|
||||
String *strack = Swig_include_sys("rubytracking.swg");
|
||||
if (!strack) {
|
||||
Printf(stderr, "*** Unable to open 'rubytracking.swg'\n");
|
||||
|
|
|
|||
|
|
@ -1274,6 +1274,13 @@ public:
|
|||
|
||||
String *runtimeCode() {
|
||||
String *s = NewString("");
|
||||
String *serrors = Swig_include_sys("tclerrors.swg");
|
||||
if (!serrors) {
|
||||
Printf(stderr, "*** Unable to open 'tclerrors.swg'\n");
|
||||
} else {
|
||||
Append(s, serrors);
|
||||
Delete(serrors);
|
||||
}
|
||||
String *sapi = Swig_include_sys("tclapi.swg");
|
||||
if (!sapi) {
|
||||
Printf(stderr, "*** Unable to open 'tclapi.swg'\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue