mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Make report_error() reentrant
Remove the global error buffer and pass the error string directly to the frontend. The frontend is then responsible for accumulating errors. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
f8f14c5edb
commit
8f81a22e7f
4 changed files with 17 additions and 34 deletions
|
@ -719,7 +719,7 @@ extern "C" {
|
|||
|
||||
extern int report_error(const char *fmt, ...);
|
||||
extern const char *get_error_string(void);
|
||||
extern void set_error_cb(void(*cb)(void));
|
||||
extern void set_error_cb(void(*cb)(char *)); // Callback takes ownership of passed string
|
||||
|
||||
extern struct dive *find_dive_including(timestamp_t when);
|
||||
extern bool dive_within_time_range(struct dive *dive, timestamp_t when, timestamp_t offset);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue