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:
Dirk Hohndel 2013-09-10 11:44:49 -07:00
parent e91ac60f49
commit e7fd45c7ef
3 changed files with 16 additions and 16 deletions

8
dive.h
View file

@ -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);