groupNames was declared in compat.c as a global to anything which
included compat.h (for which groupNames was its sole reason to exist),
but only ever used in indicators.c.
Which is kind of fortunate, given that
e314931e removed identical
definitions of groupNames (as integers, not masks) from both action.c
and symbols.c.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
alias.c \
alias.h \
compat.c \
- compat.h \
expr.c \
expr.h \
geometry.c \
#include "misc.h"
#include "indicators.h"
#include "action.h"
-#include "compat.h"
#include "parseutils.h"
typedef struct _SymInterpInfo
return ok;
}
-LookupEntry groupNames[] = {
- {"group1", 0x01}
- ,
- {"group2", 0x02}
- ,
- {"group3", 0x04}
- ,
- {"group4", 0x08}
- ,
- {"group5", 0x10}
- ,
- {"group6", 0x20}
- ,
- {"group7", 0x40}
- ,
- {"group8", 0x80}
- ,
- {"none", 0x00}
- ,
- {"all", 0xff}
- ,
- {NULL, 0}
-};
-
static int
HandleInterpVar(VarDef * stmt, struct xkb_desc * xkb, CompatInfo * info)
{
+++ /dev/null
-
-#ifndef COMPAT_H
-#define COMPAT_H 1
-
-extern LookupEntry groupNames[];
-
-#endif /* COMPAT_H */
#include "vmod.h"
#include "indicators.h"
#include "action.h"
-#include "compat.h"
/***====================================================================***/
{NULL, 0}
};
+static LookupEntry groupNames[] = {
+ {"group1", 0x01}
+ ,
+ {"group2", 0x02}
+ ,
+ {"group3", 0x04}
+ ,
+ {"group4", 0x08}
+ ,
+ {"group5", 0x10}
+ ,
+ {"group6", 0x20}
+ ,
+ {"group7", 0x40}
+ ,
+ {"group8", 0x80}
+ ,
+ {"none", 0x00}
+ ,
+ {"all", 0xff}
+ ,
+ {NULL, 0}
+};
+
int
SetIndicatorMapField(LEDInfo * led,
struct xkb_desc * xkb,