Added -freeze option.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@82 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
2c894b2d14
commit
0ef837e199
1 changed files with 8 additions and 0 deletions
|
|
@ -74,6 +74,7 @@ FILE *swig_log;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
char *SwigLib;
|
char *SwigLib;
|
||||||
|
static int freeze = 0;
|
||||||
|
|
||||||
int SWIG_main(int argc, char *argv[], Language *l, Documentation *d) {
|
int SWIG_main(int argc, char *argv[], Language *l, Documentation *d) {
|
||||||
|
|
||||||
|
|
@ -90,6 +91,7 @@ int SWIG_main(int argc, char *argv[], Language *l, Documentation *d) {
|
||||||
int ignorecomments = 0;
|
int ignorecomments = 0;
|
||||||
int checkout = 0;
|
int checkout = 0;
|
||||||
int cpp_only = 0;
|
int cpp_only = 0;
|
||||||
|
|
||||||
char *typemap_file = 0;
|
char *typemap_file = 0;
|
||||||
char *includefiles[256];
|
char *includefiles[256];
|
||||||
int includecount = 0;
|
int includecount = 0;
|
||||||
|
|
@ -236,6 +238,9 @@ int SWIG_main(int argc, char *argv[], Language *l, Documentation *d) {
|
||||||
} else if (strcmp(argv[i],"-co") == 0) {
|
} else if (strcmp(argv[i],"-co") == 0) {
|
||||||
checkout = 1;
|
checkout = 1;
|
||||||
SWIG_mark_arg(i);
|
SWIG_mark_arg(i);
|
||||||
|
} else if (strcmp(argv[i],"-freeze") == 0) {
|
||||||
|
freeze = 1;
|
||||||
|
SWIG_mark_arg(i);
|
||||||
} else if (strcmp(argv[i],"-help") == 0) {
|
} else if (strcmp(argv[i],"-help") == 0) {
|
||||||
fputs(usage,stderr);
|
fputs(usage,stderr);
|
||||||
SWIG_mark_arg(i);
|
SWIG_mark_arg(i);
|
||||||
|
|
@ -405,6 +410,7 @@ int SWIG_main(int argc, char *argv[], Language *l, Documentation *d) {
|
||||||
cpps = SWIG_cpp_parse(ds);
|
cpps = SWIG_cpp_parse(ds);
|
||||||
if (cpp_only) {
|
if (cpp_only) {
|
||||||
Printf(stdout,"%s", cpps);
|
Printf(stdout,"%s", cpps);
|
||||||
|
while (freeze);
|
||||||
SWIG_exit(0);
|
SWIG_exit(0);
|
||||||
}
|
}
|
||||||
f = fopen(fn_cpp,"w");
|
f = fopen(fn_cpp,"w");
|
||||||
|
|
@ -529,6 +535,7 @@ int SWIG_main(int argc, char *argv[], Language *l, Documentation *d) {
|
||||||
fclose(swig_log);
|
fclose(swig_log);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
while (freeze);
|
||||||
exit(error_count);
|
exit(error_count);
|
||||||
#endif
|
#endif
|
||||||
return(error_count);
|
return(error_count);
|
||||||
|
|
@ -558,6 +565,7 @@ void SWIG_exit(int) {
|
||||||
fclose(f_runtime);
|
fclose(f_runtime);
|
||||||
remove(fn_runtime);
|
remove(fn_runtime);
|
||||||
}
|
}
|
||||||
|
while (freeze);
|
||||||
#ifndef MACSWIG
|
#ifndef MACSWIG
|
||||||
exit(1);
|
exit(1);
|
||||||
#else
|
#else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue