mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Change ws_info and tank_info types
This is correct C. But debuggers in C++ mode are broken and can't display the global variables. While I hate having to do this change, I hate not being able to debug my software because of broken tools even more. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
e91ac60f49
commit
e7fd45c7ef
3 changed files with 16 additions and 16 deletions
8
dive.h
8
dive.h
|
@ -732,17 +732,17 @@ struct event *get_next_event(struct event *event, char *name);
|
|||
* dialog
|
||||
*/
|
||||
|
||||
struct tank_info {
|
||||
struct tank_info_t {
|
||||
const char *name;
|
||||
int cuft, ml, psi, bar;
|
||||
};
|
||||
extern struct tank_info tank_info[100];
|
||||
extern struct tank_info_t tank_info[100];
|
||||
|
||||
struct ws_info {
|
||||
struct ws_info_t {
|
||||
const char *name;
|
||||
int grams;
|
||||
};
|
||||
extern struct ws_info ws_info[100];
|
||||
extern struct ws_info_t ws_info[100];
|
||||
|
||||
extern bool cylinder_nodata(cylinder_t *cyl);
|
||||
extern bool cylinder_none(void *_data);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue