summaryrefslogtreecommitdiff
path: root/vmod.c
diff options
context:
space:
mode:
Diffstat (limited to 'vmod.c')
-rw-r--r--vmod.c53
1 files changed, 3 insertions, 50 deletions
diff --git a/vmod.c b/vmod.c
index b67c34e..326fc21 100644
--- a/vmod.c
+++ b/vmod.c
@@ -24,6 +24,8 @@
THE USE OR PERFORMANCE OF THIS SOFTWARE.
********************************************************/
+/* $XFree86: xc/programs/xkbcomp/vmod.c,v 3.4 2002/06/05 00:00:37 dawes Exp $ */
+
#define DEBUG_VAR_NOT_LOCAL
#define DEBUG_VAR debugFlags
#include <stdio.h>
@@ -38,13 +40,7 @@
#include "vmod.h"
void
-#if NeedFunctionPrototypes
InitVModInfo(VModInfo *info,XkbDescPtr xkb)
-#else
-InitVModInfo(info,xkb)
- VModInfo * info;
- XkbDescPtr xkb;
-#endif
{
ClearVModInfo(info,xkb);
info->errorCount= 0;
@@ -52,13 +48,7 @@ InitVModInfo(info,xkb)
}
void
-#if NeedFunctionPrototypes
ClearVModInfo(VModInfo *info,XkbDescPtr xkb)
-#else
-ClearVModInfo(info,xkb)
- VModInfo * info;
- XkbDescPtr xkb;
-#endif
{
register int i;
@@ -81,14 +71,7 @@ register int i;
/***====================================================================***/
Bool
-#if NeedFunctionPrototypes
HandleVModDef(VModDef *stmt,unsigned mergeMode,VModInfo *info)
-#else
-HandleVModDef(stmt,mergeMode,info)
- VModDef * stmt;
- unsigned mergeMode;
- VModInfo * info;
-#endif
{
register int i,bit,nextFree;
ExprResult mod;
@@ -107,7 +90,7 @@ Atom stmtName;
if (stmt->value==NULL)
return True;
else {
- char *str1,*str2= "";
+ char *str1,*str2 = "";
if (!ExprResolveModMask(stmt->value,&mod,NULL,NULL)) {
str1= XkbAtomText(NULL,stmt->name,XkbMessage);
ACTION1("Declaration of %s ignored\n",str1);
@@ -155,20 +138,11 @@ Atom stmtName;
}
int
-#if NeedFunctionPrototypes
LookupVModIndex( XPointer priv,
Atom elem,
Atom field,
unsigned type,
ExprResult * val_rtrn)
-#else
-LookupVModIndex(priv,elem,field,type,val_rtrn)
- XPointer priv;
- Atom elem;
- Atom field;
- unsigned type;
- ExprResult * val_rtrn;
-#endif
{
register int i;
register char * fieldStr;
@@ -193,20 +167,11 @@ XkbDescPtr xkb;
}
int
-#if NeedFunctionPrototypes
LookupVModMask( XPointer priv,
Atom elem,
Atom field,
unsigned type,
ExprResult * val_rtrn)
-#else
-LookupVModMask(priv,elem,field,type,val_rtrn)
- XPointer priv;
- Atom elem;
- Atom field;
- unsigned type;
- ExprResult * val_rtrn;
-#endif
{
if (LookupVModIndex(priv,elem,field,type,val_rtrn)) {
register unsigned ndx= val_rtrn->uval;
@@ -217,12 +182,7 @@ LookupVModMask(priv,elem,field,type,val_rtrn)
}
int
-#if NeedFunctionPrototypes
FindKeypadVMod(XkbDescPtr xkb)
-#else
-FindKeypadVMod(xkb)
- XkbDescPtr xkb;
-#endif
{
Atom name;
ExprResult rtrn;
@@ -236,14 +196,7 @@ ExprResult rtrn;
}
Bool
-#if NeedFunctionPrototypes
ResolveVirtualModifier(ExprDef *def,ExprResult *val_rtrn,VModInfo *info)
-#else
-ResolveVirtualModifier(def,val_rtrn,info)
- ExprDef * def;
- ExprResult * val_rtrn;
- VModInfo * info;
-#endif
{
XkbNamesPtr names;