diff options
author | jthorn <jthorn@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2004-01-16 14:18:28 +0000 |
---|---|---|
committer | jthorn <jthorn@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2004-01-16 14:18:28 +0000 |
commit | 4a4719e8b476b7bf49c20b8243a64387ca2d0303 (patch) | |
tree | 4605419cc8bb81617ea49cf0fbcf949131d4c80f | |
parent | 8b8a3a638da8f4ed81b8f5ed5b08f8d9ce225012 (diff) |
add/clarify comments in
static int ParameterSetReal (t_param *param, const char *value)
git-svn-id: http://svn.cactuscode.org/flesh/trunk@3513 17b73243-c579-4c4c-a9d2-2d5706c11dac
-rw-r--r-- | src/main/Parameters.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/Parameters.c b/src/main/Parameters.c index 79f55b72..7db92017 100644 --- a/src/main/Parameters.c +++ b/src/main/Parameters.c @@ -2124,7 +2124,11 @@ static int ParameterSetReal (t_param *param, const char *value) char *endptr; - /* Convert the value string to a double. Allow various formats.*/ + /* + * Canonicalize the string by converting all exponent letters + * (we allow [eEdD]) to 'e', since strtod(3) (which we will use + * to do the actual conversion) only groks [eE]. + */ temp = strdup (value); for (p = 0; p < strlen (temp); p++) { |