Convert missed enum merge_mode variables

Signed-off-by: Ran Benita <ran234@gmail.com>
master
Ran Benita 2012-07-14 15:14:44 +03:00
parent 43bf4136c9
commit 6c3e0811d4
9 changed files with 13 additions and 11 deletions

View File

@ -118,7 +118,8 @@ ClearAliases(AliasInfo ** info_in)
}
bool
MergeAliases(AliasInfo ** into, AliasInfo ** merge, unsigned how_merge)
MergeAliases(AliasInfo ** into, AliasInfo ** merge,
enum merge_mode how_merge)
{
AliasInfo *tmp;
KeyAliasDef def;

View File

@ -44,7 +44,7 @@ extern void
ClearAliases(AliasInfo **info);
extern bool
MergeAliases(AliasInfo **into, AliasInfo **merge, unsigned how_merge);
MergeAliases(AliasInfo **into, AliasInfo **merge, enum merge_mode how_merge);
extern int
ApplyAliases(struct xkb_keymap *keymap, AliasInfo **info);

View File

@ -45,7 +45,7 @@ typedef struct _SymInterpInfo
typedef struct _GroupCompatInfo
{
unsigned file_id;
unsigned char merge;
enum merge_mode merge;
bool defined;
unsigned char real_mods;
xkb_atom_t vmods;
@ -392,7 +392,7 @@ static bool
HandleIncludeCompatMap(IncludeStmt *stmt, struct xkb_keymap *keymap,
CompatInfo *info)
{
unsigned newMerge;
enum merge_mode newMerge;
XkbFile *rtrn;
CompatInfo included;
bool haveSelf;

View File

@ -469,7 +469,7 @@ static bool
HandleIncludeKeycodes(IncludeStmt *stmt, struct xkb_keymap *keymap,
KeyNamesInfo *info)
{
unsigned newMerge;
enum merge_mode newMerge;
XkbFile *rtrn;
KeyNamesInfo included;
bool haveSelf;

View File

@ -335,7 +335,7 @@ static bool
HandleIncludeKeyTypes(IncludeStmt *stmt, struct xkb_keymap *keymap,
KeyTypesInfo *info)
{
unsigned newMerge;
enum merge_mode newMerge;
XkbFile *rtrn;
KeyTypesInfo included;
bool haveSelf;

View File

@ -48,7 +48,7 @@ bool
ProcessIncludeFile(struct xkb_context *ctx,
IncludeStmt * stmt,
enum xkb_file_type file_type,
XkbFile ** file_rtrn, unsigned *merge_rtrn)
XkbFile ** file_rtrn, enum merge_mode *merge_rtrn)
{
FILE *file;
XkbFile *rtrn, *mapToUse, *next;

View File

@ -116,6 +116,7 @@ extern int yylex(union YYSTYPE *val, struct YYLTYPE *loc, void *scanner);
enum xkb_file_type file_type;
char *str;
xkb_atom_t sval;
enum merge_mode merge;
ParseCommon *any;
ExprDef *expr;
VarDef *var;
@ -135,7 +136,7 @@ extern int yylex(union YYSTYPE *val, struct YYLTYPE *loc, void *scanner);
%type <num> INTEGER FLOAT
%type <str> IDENT KEYNAME STRING
%type <ival> Number Integer Float SignedNumber
%type <uval> MergeMode OptMergeMode
%type <merge> MergeMode OptMergeMode
%type <file_type> XkbCompositeType FileType
%type <uval> DoodadType Flag Flags OptFlags KeyCode
%type <str> KeyName MapName OptMapName KeySym

View File

@ -795,7 +795,7 @@ static bool
HandleIncludeSymbols(IncludeStmt *stmt, struct xkb_keymap *keymap,
SymbolsInfo *info)
{
unsigned newMerge;
enum merge_mode newMerge;
XkbFile *rtrn;
SymbolsInfo included;
bool haveSelf;

View File

@ -36,7 +36,7 @@ typedef struct _CommonInfo
{
unsigned short defined;
unsigned file_id;
unsigned char merge;
enum merge_mode merge;
struct _CommonInfo *next;
} CommonInfo;
@ -66,7 +66,7 @@ ReportBadField(const char *type, const char *field, const char *name);
extern bool
ProcessIncludeFile(struct xkb_context *ctx,
IncludeStmt *stmt, enum xkb_file_type file_type,
XkbFile **file_rtrn, unsigned *merge_rtrn);
XkbFile **file_rtrn, enum merge_mode *merge_rtrn);
extern bool
FindNamedKey(struct xkb_keymap *keymap, unsigned long name,