summaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-09-10 11:44:49 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-09-10 11:44:49 -0700
commite7fd45c7efe8dcb2c38bd518e02e20bfb8898c86 (patch)
tree3cf9e4432c983f2aa0b395afbec91edaa53cf097 /dive.h
parente91ac60f4985667f8599d30881698e14e15fffca (diff)
downloadsubsurface-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.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/dive.h b/dive.h
index 64da53c87..53b2d0a98 100644
--- a/dive.h
+++ b/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);