Move some definitions from expr.h to expr.c

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
master
Daniel Stone 2012-02-20 16:59:51 +00:00
parent 90d86c360a
commit 55e058f856
2 changed files with 17 additions and 34 deletions

View File

@ -34,6 +34,21 @@
/***====================================================================***/
typedef Bool(*IdentLookupFunc) (char * /* priv */ ,
uint32_t /* field */ ,
unsigned /* type */ ,
ExprResult * /* val_rtrn */
);
typedef struct _LookupPriv
{
char * priv;
IdentLookupFunc chain;
char * chainPriv;
} LookupPriv;
/***====================================================================***/
char *
exprOpText(unsigned type)
{
@ -155,7 +170,7 @@ ExprResolveLhs(ExprDef * expr,
return False;
}
Bool
static Bool
SimpleLookup(char * priv, uint32_t field, unsigned type,
ExprResult * val_rtrn)
{
@ -182,7 +197,7 @@ SimpleLookup(char * priv, uint32_t field, unsigned type,
return False;
}
Bool
static Bool
RadioLookup(char * priv, uint32_t field, unsigned type, ExprResult * val_rtrn)
{
const char *str;

View File

@ -35,54 +35,22 @@ typedef union _ExprResult
struct xkb_key_name keyName;
} ExprResult;
typedef Bool(*IdentLookupFunc) (char * /* priv */ ,
uint32_t /* field */ ,
unsigned /* type */ ,
ExprResult * /* val_rtrn */
);
extern int ExprResolveLhs(ExprDef * /* expr */ ,
ExprResult * /* elem_rtrn */ ,
ExprResult * /* field_rtrn */ ,
ExprDef ** /* index_rtrn */
);
typedef struct _LookupPriv
{
char * priv;
IdentLookupFunc chain;
char * chainPriv;
} LookupPriv;
typedef struct _LookupEntry
{
const char *name;
unsigned result;
} LookupEntry;
typedef struct _LookupTable
{
char *element;
LookupEntry *entries;
struct _LookupTable *nextElement;
} LookupTable;
extern char *exprOpText(unsigned /* type */
);
extern int RadioLookup(char * /* priv */ ,
uint32_t /* field */ ,
unsigned /* type */ ,
ExprResult * /* val_rtrn */
);
extern int SimpleLookup(char * /* priv */ ,
uint32_t /* field */ ,
unsigned /* type */ ,
ExprResult * /* val_rtrn */
);
extern int LookupModIndex(char * /* priv */ ,
uint32_t /* field */ ,
unsigned /* type */ ,