(SWIG_main): Add informative output when `Verbose' non-zero.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@443 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
15f8a9ea36
commit
3a9a8b4304
1 changed files with 21 additions and 2 deletions
|
|
@ -262,6 +262,8 @@ int SWIG_main(int argc, char *argv[], Language *l) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (Verbose)
|
||||||
|
printf ("LibDir: %s\n", LibDir);
|
||||||
|
|
||||||
while (includecount > 0) {
|
while (includecount > 0) {
|
||||||
Swig_add_directory((DOH *) includefiles[--includecount]);
|
Swig_add_directory((DOH *) includefiles[--includecount]);
|
||||||
|
|
@ -296,6 +298,9 @@ int SWIG_main(int argc, char *argv[], Language *l) {
|
||||||
if (outfile_name)
|
if (outfile_name)
|
||||||
outfile = outfile_name;
|
outfile = outfile_name;
|
||||||
|
|
||||||
|
if (Verbose)
|
||||||
|
printf ("Handling checkout...\n");
|
||||||
|
|
||||||
s = Swig_include(input_file);
|
s = Swig_include(input_file);
|
||||||
if (!s) {
|
if (!s) {
|
||||||
fprintf(stderr,"Unable to locate '%s' in the SWIG library.\n", input_file);
|
fprintf(stderr,"Unable to locate '%s' in the SWIG library.\n", input_file);
|
||||||
|
|
@ -380,6 +385,8 @@ int SWIG_main(int argc, char *argv[], Language *l) {
|
||||||
Preprocessor_define((DOH *) "__cplusplus 1", 0);
|
Preprocessor_define((DOH *) "__cplusplus 1", 0);
|
||||||
|
|
||||||
// Run the preprocessor
|
// Run the preprocessor
|
||||||
|
if (Verbose)
|
||||||
|
printf ("Preprocessing...\n");
|
||||||
{
|
{
|
||||||
DOH *cpps;
|
DOH *cpps;
|
||||||
FILE *f;
|
FILE *f;
|
||||||
|
|
@ -411,6 +418,8 @@ int SWIG_main(int argc, char *argv[], Language *l) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Initialize the scanner
|
// Initialize the scanner
|
||||||
|
if (Verbose)
|
||||||
|
printf ("Scanning...\n");
|
||||||
LEX_in = f_input;
|
LEX_in = f_input;
|
||||||
scanner_file(LEX_in);
|
scanner_file(LEX_in);
|
||||||
|
|
||||||
|
|
@ -462,7 +471,15 @@ int SWIG_main(int argc, char *argv[], Language *l) {
|
||||||
|
|
||||||
// Pass control over to the specific language interpreter
|
// Pass control over to the specific language interpreter
|
||||||
|
|
||||||
|
if (Verbose) {
|
||||||
|
fprintf (stdout, "Starting language-specific parse...\n");
|
||||||
|
fflush (stdout);
|
||||||
|
}
|
||||||
lang->parse();
|
lang->parse();
|
||||||
|
if (Verbose) {
|
||||||
|
fprintf (stdout, "Finished language-specific parse.\n");
|
||||||
|
fflush (stdout);
|
||||||
|
}
|
||||||
|
|
||||||
fclose(f_header);
|
fclose(f_header);
|
||||||
fclose(f_wrappers);
|
fclose(f_wrappers);
|
||||||
|
|
@ -475,6 +492,8 @@ int SWIG_main(int argc, char *argv[], Language *l) {
|
||||||
fclose(f_runtime);
|
fclose(f_runtime);
|
||||||
|
|
||||||
// Remove temporary files
|
// Remove temporary files
|
||||||
|
if (Verbose)
|
||||||
|
printf ("Cleaning up...\n");
|
||||||
|
|
||||||
remove(fn_cpp);
|
remove(fn_cpp);
|
||||||
remove(fn_header);
|
remove(fn_header);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue