Berthold Stoeger
21a28aeb62
core: turn string data in struct divecomputer into std::string
...
Simplifies memory management.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2024-06-10 13:05:58 +02:00
Berthold Stoeger
3447441e81
core: add constructor/destructor pairs to dive and divecomputer
...
This allows us to use non-C member variables. Convert a number
of pointers to unique_ptr<>s.
Code in uemis-downloader.cpp had to be refactored, because
it mixed owning and non-owning pointers. Mad.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2024-06-10 13:05:58 +02:00
Berthold Stoeger
950578d2f9
core: remove ssrf.h include file
...
It didn't contain anything.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2024-06-10 13:05:57 +02:00
Berthold Stoeger
50d65183e7
core: make event name an std::string
...
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2024-06-10 13:05:57 +02:00
Berthold Stoeger
6bdb8537e6
build: remove extern "C" linkage
...
No more C source files, no more necessity to use C-linkage.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2024-06-10 13:05:57 +02:00
Berthold Stoeger
da7ea17b66
cleanup: replace fprintf to stderr by report_info()
...
Let's try to unify debugging output!
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2024-04-23 07:47:11 +07:00
Berthold Stoeger
8d96b7557d
core: convert parser_state to C++
...
Add constructor, destructor and use std::string for memory
management of text data.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2024-03-10 11:01:42 +13:00
Berthold Stoeger
5e466d91f0
core: convert core/import-*.c to C++
...
import-csv.c was crazy with implicit (const char *) to (char *)
conversions!
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2024-03-10 11:01:42 +13:00