summaryrefslogtreecommitdiff
path: root/src/main/ProcessCommandLine.c
diff options
context:
space:
mode:
authorgoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>2000-10-04 13:52:15 +0000
committergoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>2000-10-04 13:52:15 +0000
commit5dadfa4188f57b3abe680526ce06146b888a789e (patch)
tree2d8b5ece1626bd73200e20d896ba3f1a10fd77c5 /src/main/ProcessCommandLine.c
parentcb32de130ef08631529e1947c4144130cf97fdcb (diff)
GRdoc + coding guideline stuff.
Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1851 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/main/ProcessCommandLine.c')
-rw-r--r--src/main/ProcessCommandLine.c90
1 files changed, 87 insertions, 3 deletions
diff --git a/src/main/ProcessCommandLine.c b/src/main/ProcessCommandLine.c
index c8eb6d85..69657b7e 100644
--- a/src/main/ProcessCommandLine.c
+++ b/src/main/ProcessCommandLine.c
@@ -5,23 +5,45 @@
@desc
Routines to deal with the command line arguments.
@enddesc
+ @version $Header$
@@*/
#include <stdio.h>
#include <stdlib.h>
-#include "CommandLine.h"
#include "cctk_Flesh.h"
#include "cctk_GNU.h"
+#include "CommandLine.h"
+
static char *rcsid = "$Header$";
CCTK_FILEVERSION(main_ProcessCommandLine_c)
+/********************************************************************
+ ********************* Local Data Types ***********************
+ ********************************************************************/
+
+/********************************************************************
+ ********************* Local Routine Prototypes *********************
+ ********************************************************************/
+
+/********************************************************************
+ ********************* Other Routine Prototypes *********************
+ ********************************************************************/
+
+/********************************************************************
+ ********************* Local Data *****************************
+ ********************************************************************/
+
static char *parameter_file_name=NULL;
-static int argc;
+static int argc = 0;
+
+static char **argv = NULL;
-static char **argv;
+/********************************************************************
+ ********************* External Routines **********************
+ ********************************************************************/
/*@@
@routine CCTKi_ProcessCommandLine
@@ -35,6 +57,32 @@ static char **argv;
@history
@endhistory
+ @var inargc
+ @vdesc Number of runtime arguments
+ @vtype int *
+ @vio inout
+ @vcomment
+
+ @endvar
+ @var inargv
+ @vdesc Command line arguments
+ @vtype char ***
+ @vio inout
+ @vcomment
+
+ @endvar
+ @var ConfigData
+ @vdesc Flesh configuration data
+ @vtype tFleshConfig
+ @vio inout
+ @vcomment
+
+ @endvar
+
+ @returntype int
+ @returndesc
+ 0 -- success
+ @endreturndesc
@@*/
int CCTKi_ProcessCommandLine(int *inargc, char ***inargv, tFleshConfig *ConfigData)
@@ -126,7 +174,18 @@ int CCTKi_ProcessCommandLine(int *inargc, char ***inargv, tFleshConfig *ConfigDa
@history
@endhistory
+ @var outargv
+ @vdesc Place to dump the command line arguments
+ @vtype char ***
+ @vio out
+ @vcomment
+
+ @endvar
+ @returntype int
+ @returndesc
+ The number of command line arguments.
+ @endreturndesc
@@*/
int CCTK_CommandLine(char ***outargv)
{
@@ -148,6 +207,25 @@ int CCTK_CommandLine(char ***outargv)
@history
@endhistory
+ @var len
+ @vdesc The length of the incoming string
+ @vtype int
+ @vio in
+ @vcomment
+
+ @endvar
+ @var filename
+ @vdesc String to contain the filename
+ @vtype char *
+ @vio out
+ @vcomment
+
+ @endvar
+
+ @returntype int
+ @returndesc
+ The length of the returned string.
+ @endreturndesc
@@*/
int CCTK_ParameterFilename(int len, char *filename)
@@ -173,3 +251,9 @@ void CCTK_FCALL CCTK_FNAME(CCTK_ParameterFilename)
*retval = CCTK_ParameterFilename(*len,name);
}
+/********************************************************************
+ ********************* Local Routines *************************
+ ********************************************************************/
+
+
+