diff options
author | Kaleb Keithley <kaleb@freedesktop.org> | 2003-11-25 19:29:03 +0000 |
---|---|---|
committer | Kaleb Keithley <kaleb@freedesktop.org> | 2003-11-25 19:29:03 +0000 |
commit | a64d8c5f7f6604d323519090ba339900d9d585f2 (patch) | |
tree | 4901d00d8b104d43d2c9d6d8f986e2fec89f3be4 /setxkbmap.c | |
parent | bff1de092debc890f15dacc871698b9679db366a (diff) |
XFree86 4.3.99.16 Bring the tree up to date for the Cygwin folksxf86-4_3_99_903_specialxf86-4_3_99_902xf86-4_3_99_901xf86-4_3_99_16xf86-012804-2330
Diffstat (limited to 'setxkbmap.c')
-rw-r--r-- | setxkbmap.c | 104 |
1 files changed, 1 insertions, 103 deletions
diff --git a/setxkbmap.c b/setxkbmap.c index 078a158..16d12bf 100644 --- a/setxkbmap.c +++ b/setxkbmap.c @@ -23,7 +23,7 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE. ********************************************************/ -/* $XFree86: xc/programs/setxkbmap/setxkbmap.c,v 3.7 2003/01/20 04:15:08 dawes Exp $ */ +/* $XFree86: xc/programs/setxkbmap/setxkbmap.c,v 3.8 2003/11/17 22:20:50 dawes Exp $ */ #include <stdio.h> #include <stdlib.h> @@ -158,15 +158,7 @@ void printKeymap( void ); /***====================================================================***/ Bool -#if NeedFunctionPrototypes addToList(int *sz,int *num,char ***listIn,char *newVal) -#else -addToList(sz,num,listIn,newVal) - int * sz; - int * num; - char *** listIn; - char * newVal; -#endif { register int i; char **list; @@ -204,13 +196,7 @@ char **list; /***====================================================================***/ void -#if NeedFunctionPrototypes usage(int argc,char **argv) -#else -usage(argc,argv) - int argc; - char ** argv; -#endif { MSG1("Usage: %s [args] [<layout> [<variant> [<option> ... ]]]\n",argv[0]); MSG("Where legal args are:\n"); @@ -236,13 +222,7 @@ usage(argc,argv) } void -#if NeedFunctionPrototypes dumpNames(Bool wantRules,Bool wantCNames) -#else -dumpNames(wantRules,wantCNames) - Bool wantRules; - Bool wantCNames; -#endif { if (wantRules) { if (svValue[MODEL_NDX]) MSG1("model: %s\n",svValue[MODEL_NDX]); @@ -274,14 +254,7 @@ dumpNames(wantRules,wantCNames) /***====================================================================***/ void -#if NeedFunctionPrototypes trySetString(int which,char *newVal,int src) -#else -trySetString(which,newVal,src) - int which; - char * newVal; - int src; -#endif { if (svValue[which]!=NULL) { if (svSrc[which]==src) { @@ -304,16 +277,7 @@ trySetString(which,newVal,src) } Bool -#if NeedFunctionPrototypes setOptString(int *arg,int argc,char **argv,int which,int src) -#else -setOptString(arg,argc,argv,which,src) - int * arg; - int argc; - char ** argv; - int what; - int src; -#endif { int ndx; char * opt; @@ -348,13 +312,7 @@ char * opt; /***====================================================================***/ int -#if NeedFunctionPrototypes parseArgs(int argc,char **argv) -#else -parseArgs(argc,argv) - int argc; - char ** argv; -#endif { int i; Bool ok; @@ -454,13 +412,7 @@ unsigned present; } Bool -#if NeedFunctionPrototypes getDisplay(int argc,char **argv) -#else -getDisplay(argc,argv) - int argc; - char ** argv; -#endif { int major,minor,why; @@ -505,11 +457,7 @@ int major,minor,why; /***====================================================================***/ Bool -#if NeedFunctionPrototypes getServerValues(void) -#else -getServerValues() -#endif { XkbRF_VarDefsRec vd; char * tmp= NULL; @@ -540,13 +488,7 @@ char * tmp= NULL; /***====================================================================***/ FILE * -#if NeedFunctionPrototypes findFileInPath(char *name,char *subdir) -#else -findFileInPath(name,subdir) - char * name; - char * subdir; -#endif { register int i; char buf[PATH_MAX]; @@ -577,15 +519,7 @@ FILE * fp; /***====================================================================***/ Bool -#if NeedFunctionPrototypes addStringToOptions(char *opt_str,int *sz_opts,int *num_opts,char ***opts) -#else -addStringToOptions(opt_str,sz_opts,num_opts,opts) - char * opt_str; - int * sz_opts; - int * num_opts; - char *** opts; -#endif { char *tmp,*str,*next; Bool ok= True; @@ -608,14 +542,7 @@ Bool ok= True; /***====================================================================***/ char * -#if NeedFunctionPrototypes stringFromOptions(char *orig,int numNew,char **newOpts) -#else -stringFromOptions(orig,numNew,newOpts) - char * orig; - int numNew; - char ** newOpts; -#endif { int len,i,nOut; @@ -651,12 +578,7 @@ int len,i,nOut; /***====================================================================***/ Bool -#if NeedFunctionPrototypes applyConfig(char *name) -#else -applyConfig(name) - char * name; -#endif { FILE * fp; Bool ok; @@ -721,11 +643,7 @@ Bool ok; } Bool -#if NeedFunctionPrototypes applyRules(void) -#else -applyRules() -#endif { int i; char * rfName; @@ -804,13 +722,7 @@ char * rfName; /* Primitive sanity check - filter out 'map names' (inside parenthesis) */ /* that can confuse xkbcomp parser */ Bool -#if NeedFunctionPrototypes checkName(char *name, char* string) -#else -checkName() - char *name; - char *string; -#endif { char *i = name, *opar = NULL; Bool ret = True; @@ -852,11 +764,7 @@ checkName() } void -#if NeedFunctionPrototypes printKeymap(void) -#else -printKeymap() -#endif { MSG("xkb_keymap {\n"); if (svValue[KEYCODES_NDX]) @@ -873,11 +781,7 @@ printKeymap() } Bool -#if NeedFunctionPrototypes applyComponentNames(void) -#else -applyComponentNames() -#endif { if(!checkName(svValue[TYPES_NDX], "types")) return False; @@ -926,13 +830,7 @@ applyComponentNames() int -#if NeedFunctionPrototypes main(int argc,char **argv) -#else -main(argc,argv) - int argc; - char ** argv; -#endif { if ((!parseArgs(argc,argv))||(!getDisplay(argc,argv))) exit(-1); |