mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
f756dcbf94
commit
3fe80bfd79
1 changed files with 229 additions and 238 deletions
467
core/load-git.c
467
core/load-git.c
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue