diff options
Diffstat (limited to 'atom.c')
-rw-r--r-- | atom.c | 16 |
1 files changed, 2 insertions, 14 deletions
@@ -34,7 +34,6 @@ in this Software without prior written authorization from The Open Group. #include <config.h> #endif #include "fontmisc.h" -#include "stubs.h" typedef struct _AtomList { char *name; @@ -140,11 +139,7 @@ NameEqual(const char *a, const char *b, int l) return TRUE; } -#ifdef __SUNPRO_C -#pragma weak MakeAtom -#endif - -weak Atom +Atom MakeAtom(const char *string, unsigned len, int makeit) { AtomListPtr a; @@ -152,8 +147,6 @@ MakeAtom(const char *string, unsigned len, int makeit) int h = 0; int r; - OVERRIDE_SYMBOL(MakeAtom, string, len, makeit); - hash = Hash(string, len); if (hashTable) { h = hash & hashMask; @@ -212,14 +205,9 @@ MakeAtom(const char *string, unsigned len, int makeit) return a->atom; } -#ifdef __SUNPRO_C -#pragma weak NameForAtom -#endif - -weak char * +char * NameForAtom(Atom atom) { - OVERRIDE_SYMBOL(NameForAtom, atom); if (atom != None && atom <= lastAtom) return reverseMap[atom]->name; return NULL; |