summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorschnetter <schnetter@17b73243-c579-4c4c-a9d2-2d5706c11dac>2008-06-17 20:24:04 +0000
committerschnetter <schnetter@17b73243-c579-4c4c-a9d2-2d5706c11dac>2008-06-17 20:24:04 +0000
commitc2fd657f1677a3a0335224a68c4ae39c6c2713a3 (patch)
tree45927d66159c35039a56525bf3c8ec9ff5be7b5a /lib
parent5c085cb015a8a6a3c1e229689b55a6a0cf29fa79 (diff)
Cactus has currently an error in its parameter checking. It
interprets ranges consisting of single numbers as allowing this number and all larger numbers. For example, the specification INT spatial_order "Order of spatial differencing" { 2 :: "second order" 4 :: "fourth order" } 2 allows all numbers not less than 2. This patch corrects this problem. Since this involves regular expressions which are often difficult to read, I have broken up the regular expressions into macros containing sub-expressions. I have also replaced calls to atoi and atof with calls to strtol and strtod, since these allow error checking which also was not present before. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4496 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions