summaryrefslogtreecommitdiff
path: root/src/xkbatom.c
diff options
context:
space:
mode:
authorKaleb Keithley <kaleb@freedesktop.org>2003-11-25 19:28:21 +0000
committerKaleb Keithley <kaleb@freedesktop.org>2003-11-25 19:28:21 +0000
commit91ac80641f0e04536ffe9d4168a19ba3d7ee050d (patch)
treebdbda91d988ad3e7d19d4184c2d2930be9d3d26f /src/xkbatom.c
parentcb45b671537b25c832428c0a75cb7d7712dea3e5 (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 'src/xkbatom.c')
-rw-r--r--src/xkbatom.c43
1 files changed, 1 insertions, 42 deletions
diff --git a/src/xkbatom.c b/src/xkbatom.c
index 2883cac..f152e78 100644
--- a/src/xkbatom.c
+++ b/src/xkbatom.c
@@ -71,7 +71,7 @@ SOFTWARE.
THE USE OR PERFORMANCE OF THIS SOFTWARE.
********************************************************/
-/* $XFree86: xc/lib/xkbfile/xkbatom.c,v 3.8 2001/12/14 19:57:03 dawes Exp $ */
+/* $XFree86: xc/lib/xkbfile/xkbatom.c,v 3.9 2003/11/17 22:20:23 dawes Exp $ */
#include <stdio.h>
#include <ctype.h>
@@ -102,14 +102,7 @@ static unsigned long tableLength;
static NodePtr *nodeTable;
static Atom
-#if NeedFunctionPrototypes
_XkbMakeAtom(char *string,unsigned len,Bool makeit)
-#else
-_XkbMakeAtom(string, len, makeit)
- char *string;
- unsigned len;
- Bool makeit;
-#endif
{
register NodePtr * np;
unsigned i;
@@ -179,12 +172,7 @@ _XkbMakeAtom(string, len, makeit)
}
static char *
-#if NeedFunctionPrototypes
_XkbNameForAtom(Atom atom)
-#else
-_XkbNameForAtom(atom)
- Atom atom;
-#endif
{
NodePtr node;
if (atom > lastAtom) return 0;
@@ -193,11 +181,7 @@ _XkbNameForAtom(atom)
}
static void
-#if NeedFunctionPrototypes
_XkbInitAtoms(void)
-#else
-_XkbInitAtoms()
-#endif
{
tableLength = InitialTableSize;
nodeTable = (NodePtr *)_XkbAlloc(InitialTableSize*sizeof(NodePtr));
@@ -207,13 +191,7 @@ _XkbInitAtoms()
/***====================================================================***/
char *
-#if NeedFunctionPrototypes
XkbAtomGetString(Display *dpy,Atom atm)
-#else
-XkbAtomGetString(dpy,atm)
- Display * dpy;
- Atom atm;
-#endif
{
if (atm==None)
return NULL;
@@ -225,14 +203,7 @@ XkbAtomGetString(dpy,atm)
/***====================================================================***/
Atom
-#if NeedFunctionPrototypes
XkbInternAtom(Display *dpy,char *name,Bool onlyIfExists)
-#else
-XkbInternAtom(dpy,name,onlyIfExists)
- Display * dpy;
- char * name;
- Bool onlyIfExists;
-#endif
{
if (name==NULL)
return None;
@@ -245,14 +216,7 @@ XkbInternAtom(dpy,name,onlyIfExists)
/***====================================================================***/
Atom
-#if NeedFunctionPrototypes
XkbChangeAtomDisplay(Display *oldDpy,Display *newDpy,Atom atm)
-#else
-XkbChangeAtomDisplay(oldDpy,newDpy,atm)
- Display * oldDpy;
- Display * newDpy;
- Atom atm;
-#endif
{
char *tmp;
@@ -267,12 +231,7 @@ char *tmp;
/***====================================================================***/
void
-#if NeedFunctionPrototypes
XkbInitAtoms(Display *dpy)
-#else
-XkbInitAtoms(dpy)
- Display *dpy;
-#endif
{
static int been_here= 0;
if ((dpy==NULL)&&(!been_here)) {