mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
parser: replace params[] code by new xml_params struct
This fixes a load of memory holes, and makes the code (hopefully) more readable. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
b9b51ffd4e
commit
d508a16aca
10 changed files with 301 additions and 498 deletions
|
@ -9,6 +9,7 @@
|
|||
|
||||
struct picture;
|
||||
struct dive_trip;
|
||||
struct xml_params;
|
||||
|
||||
// 1) Types
|
||||
|
||||
|
@ -148,7 +149,7 @@ char *hashfile_name_string();
|
|||
char *picturedir_string();
|
||||
const char *subsurface_user_agent();
|
||||
enum deco_mode decoMode();
|
||||
int parse_seabear_header(const char *filename, char **params, int pnr);
|
||||
void parse_seabear_header(const char *filename, struct xml_params *params);
|
||||
char *get_current_date();
|
||||
time_t get_dive_datetime_from_isostring(char *when);
|
||||
void print_qt_versions();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue