aboutsummaryrefslogtreecommitdiffstats
path: root/CodingStyle.md
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-07-24 23:54:46 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-08-04 16:22:19 -0700
commit3fe80bfd79954e9fe6efeb20b80f20cd090dbd1b (patch)
tree7c7d73141e3862101a5db7d001ca69eee6cd54fe /CodingStyle.md
parentf756dcbf9439193897caeded81490f3f80a86c2f (diff)
downloadsubsurface-3fe80bfd79954e9fe6efeb20b80f20cd090dbd1b.tar.gz
Git: Make parser reentrant
The git parser was using a number of global static variables. Remove them by introducing a parser state, which is passed down to the call hierarchy. Advantages: 1) Removes global variables and makes the parser (mostly) reentrant. 2) More flexible - e.g. when parsing samples, the parser can now access the dive to check if the cylinder number is valid. 3) Less weak typing through "void *". Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'CodingStyle.md')
0 files changed, 0 insertions, 0 deletions