diff options
author | goodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 1999-07-23 12:59:26 +0000 |
---|---|---|
committer | goodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 1999-07-23 12:59:26 +0000 |
commit | 17d4b583e0f8cffc5a8c5fe7f112a8406a2b27aa (patch) | |
tree | 484320ce026a6d3e20d923aedb413dc8488d6be1 /src/main/ProcessCommandLine.c | |
parent | aef5b060e4bda34e2d8723bcc072e969d82d3a25 (diff) |
Mainly changes to get redirection of stdout to work.
Now the defaults for overloaded functions are setup before anything else, and
the the Overloading functions count the number of times they are called
and don't allow the thing to be overloaded more than twice - once for the
default, and once for people actually wanting to overload it.
Redirection now works - output is put into files like CCTK_Proc<x> where x is the
process number.
Tom
git-svn-id: http://svn.cactuscode.org/flesh/trunk@773 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/main/ProcessCommandLine.c')
-rw-r--r-- | src/main/ProcessCommandLine.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/ProcessCommandLine.c b/src/main/ProcessCommandLine.c index 4ae2f3ad..989044d5 100644 --- a/src/main/ProcessCommandLine.c +++ b/src/main/ProcessCommandLine.c @@ -18,7 +18,6 @@ static int argc; static char **argv; - /*@@ @routine ProcessCommandLine @date Thu Sep 24 10:33:31 1998 @@ -79,7 +78,7 @@ int ProcessCommandLine(int *inargc, char ***inargv, tFleshConfig *ConfigData) case 'x': CCTK_CommandLineTestParameters(optarg); break; case 'W': CCTK_CommandLineWarningLevel(optarg); break; case 'E': CCTK_CommandLineErrorLevel(optarg); break; - case 'r': CCTK_CommandLineRedirectStderr(); break; + case 'r': CCTK_CommandLineRedirectStdout(); break; case 'T': CCTK_CommandLineListThorns(); break; case 'v': CCTK_CommandLineVersion(); break; case 'h': @@ -104,6 +103,8 @@ int ProcessCommandLine(int *inargc, char ***inargv, tFleshConfig *ConfigData) CCTK_CommandLineUsage(); } + CCTK_CommandLineFinished(); + return 0; } |