core: convert dive computer extra data to C++

Use std::string and std::vector. Much simpler code.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2024-05-18 21:04:58 +02:00 committed by bstoeger
parent b9a2eff3c9
commit bc761344d4
14 changed files with 101 additions and 161 deletions

View file

@ -2,10 +2,11 @@
#ifndef EXTRADATA_H
#define EXTRADATA_H
#include <string>
struct extra_data {
const char *key;
const char *value;
struct extra_data *next;
std::string key;
std::string value;
};
#endif