From 3e901df5b706b893d9cf672e8ee43ac3fcc415a2 Mon Sep 17 00:00:00 2001 From: tradke Date: Tue, 14 Mar 2000 13:00:36 +0000 Subject: Changed interface for CCTK_ParameterWalk() to return both a canonical name and a pointer the parameter properties. Replaced calls to CCTK_ParameterList() by CCTK_ParameterWalk() in CommandLine.c. CCTK_ParameterList() is gone now. Inserted a line "Parameters of thorn 'BLA' providing implementation 'LABER':" in the -O output. Should be easily filtered out for automatic postprocessing. Option -o now prints out both "thorn::param" and "impl::param" as full names for global/restricted parameters. #ifdef'd out ParameterPTreeNodeAdd() in Parameters.c to fix a compiler warning (unused static function). Thomas git-svn-id: http://svn.cactuscode.org/flesh/trunk@1470 17b73243-c579-4c4c-a9d2-2d5706c11dac --- src/include/cctk_Parameter.h | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) (limited to 'src/include/cctk_Parameter.h') diff --git a/src/include/cctk_Parameter.h b/src/include/cctk_Parameter.h index fa024c8f..caff98e1 100644 --- a/src/include/cctk_Parameter.h +++ b/src/include/cctk_Parameter.h @@ -121,17 +121,14 @@ char *CCTK_ParameterValString (const char *name, /* The name of the parameter const char *thorn); /* The originating thorn */ /* walk through list of parameters */ -char *CCTK_ParameterWalk(int first, /* Get first parameter or not */ - const char *origin); /* Origin of this walk */ - -/* get list of parameter names for given thorn */ -int CCTK_ParameterList (const char* thorn, - char ***paramlist, - int *n_param); - -/* get parameter properties for gven parameter/thorn pair */ -cParamData *CCTK_ParameterData (const char *name, - const char *thorn); +int CCTK_ParameterWalk(int first, /* Get first parameter or not */ + const char *origin, /* Origin of this walk */ + char **pfullname, /* Address of string pointer */ + const cParamData **pdata); /* Address of parameter data ptr */ + +/* get parameter properties for given parameter/thorn pair */ +const cParamData *CCTK_ParameterData (const char *name, + const char *thorn); #ifdef __cplusplus } -- cgit v1.2.3