summaryrefslogtreecommitdiffstats
path: root/CONTRIBUTING.md
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-06-06 07:41:29 +0200
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2019-06-06 14:52:42 +0300
commitefb98cfd6971e09c5722c95e38ecf566f4d46773 (patch)
treeda79547a83d3ca326dd563baba468d89ed9267a9 /CONTRIBUTING.md
parent17b059fcd65d3c0a1f15e87fd31d737bc33bf554 (diff)
downloadsubsurface-efb98cfd6971e09c5722c95e38ecf566f4d46773.tar.gz
Printing: use regexp in preprocessTemplate()
preprocessTemplate() replaces variables of the kind "dive.weight0" by "dive.weights.0". Replace the old code by regexps. This not only makes the code significantly shorter, it also makes it independent from the name of the dive variable (i.e. "dive"). Moreover, it removes a dependency on MAX_WEIGHTSYSTEMS and MAX_CYLINDERS, which might help in removing these restrictions. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'CONTRIBUTING.md')
0 files changed, 0 insertions, 0 deletions