git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@5128
ffa7fe5e-494d-0410-b361-
a75ebd5db220
#define ATTR_DEF_ITEMS(x,...) (&(struct attr){attr_##x,{(char *)((enum item_type[]){__VA_ARGS__ , type_none})}})
#define ATTR_LIST(...) (struct attr *[]) { __VA_ARGS__, NULL}
+struct range {
+ short min, max;
+};
+
struct attr {
enum attr_type type;
union {
struct bookmarks *bookmarks;
struct config *config;
struct osd *osd;
- struct range {
- short min, max;
- } range;
+ struct range range;
int *dash;
enum item_type *item_types;
enum attr_type *attr_types;
#include "command.h"
#include "keys.h"
-//WORKAOUND for the c/c++ compatibility issues.
-//range is defined inside of struct attr so it is invisible in c++
-struct range {
- short min, max;
-} range;
-
#include "layout.h"
struct gui_priv {