From e7fd45c7efe8dcb2c38bd518e02e20bfb8898c86 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 10 Sep 2013 11:44:49 -0700 Subject: 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 --- dive.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'dive.h') 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); -- cgit v1.2.3-70-g09d2