diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-07-24 23:54:46 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-08-04 16:22:19 -0700 |
commit | 3fe80bfd79954e9fe6efeb20b80f20cd090dbd1b (patch) | |
tree | 7c7d73141e3862101a5db7d001ca69eee6cd54fe /core/save-html.c | |
parent | f756dcbf9439193897caeded81490f3f80a86c2f (diff) | |
download | subsurface-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 'core/save-html.c')
0 files changed, 0 insertions, 0 deletions