diff options
author | jthorn <jthorn@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2004-01-16 14:27:24 +0000 |
---|---|---|
committer | jthorn <jthorn@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2004-01-16 14:27:24 +0000 |
commit | 7c2153de7d1fec76bb2955b793b64251b89528d3 (patch) | |
tree | 7bd39a5979aff5c2539ccaf2798115aa887a70bf /src/util | |
parent | 4a4719e8b476b7bf49c20b8243a64387ca2d0303 (diff) |
for the function
int Util_DoubleInRange(double inval, const char *range)
move the text
Valid ranges are of the form start:end:step
possibly preceeded by a [ or ( and ended by a ) or ] to indicate
closure. The end and step are optional. A * can also be used
to indicate any value.
from an internal comment up into the header comment, since it describes
part of this function's caller-visible semantics.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@3514 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/Misc.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/util/Misc.c b/src/util/Misc.c index cb98b1fd..925850ae 100644 --- a/src/util/Misc.c +++ b/src/util/Misc.c @@ -460,6 +460,11 @@ int Util_IntInRange(int inval, const char *range) @desc This routine will determine if a double is in the range specified in the range string. + + Valid ranges are of the form start:end:step + possibly preceeded by a [ or ( and ended by a ) or ] to indicate + closure. The end and step are optional. A * can also be used + to indicate any value. @enddesc @var inval @@ -487,11 +492,7 @@ int Util_DoubleInRange(double inval, const char *range) retval = 0; - /* Valid ranges are of the form start:end:step - * possibly preceeded by a [ or ( and ended by a ) or ] to indicate - * closure. The end and step are optional. A * can also be used - * to indicate any value. - * + /* * The following regular expression may match five substrings: * * 1 - [ or ( |