diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-09-10 11:44:49 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-09-10 11:44:49 -0700 |
commit | e7fd45c7efe8dcb2c38bd518e02e20bfb8898c86 (patch) | |
tree | 3cf9e4432c983f2aa0b395afbec91edaa53cf097 /dive.h | |
parent | e91ac60f4985667f8599d30881698e14e15fffca (diff) | |
download | subsurface-e7fd45c7efe8dcb2c38bd518e02e20bfb8898c86.tar.gz |
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>
Diffstat (limited to 'dive.h')
-rw-r--r-- | dive.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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); |