Commit fb832b01 authored by Mike Gabriel's avatar Mike Gabriel

Adapt API for MakeAtom() and CopyISOLatin1Lowered to latest changes in X.org.

This requires adaptations of arguments' types for the external references to MakeAtom() and CopyISOLatin1Lowered(). These adaptations have been required in Xserver/include/dix.h, Xserver/include/dixfonts.c Xserver/dix/atom.c, Xserver/dix/dixutils.c, Xserver/os/oscolor.c.
parent 5e6b72dc
...@@ -75,7 +75,7 @@ static NodePtr *nodeTable; ...@@ -75,7 +75,7 @@ static NodePtr *nodeTable;
void FreeAtom(NodePtr patom); void FreeAtom(NodePtr patom);
Atom Atom
MakeAtom(char *string, unsigned len, Bool makeit) MakeAtom(const char *string, unsigned len, Bool makeit)
{ {
register NodePtr * np; register NodePtr * np;
unsigned i; unsigned i;
......
...@@ -171,7 +171,7 @@ ISOLatin1ToLower (unsigned char source) ...@@ -171,7 +171,7 @@ ISOLatin1ToLower (unsigned char source)
void void
CopyISOLatin1Lowered(unsigned char *dest, unsigned char *source, int length) CopyISOLatin1Lowered(char *dest, const char *source, int length)
{ {
register int i; register int i;
......
...@@ -386,8 +386,8 @@ extern void ddxBeforeReset (void); ...@@ -386,8 +386,8 @@ extern void ddxBeforeReset (void);
/* dixutils.c */ /* dixutils.c */
extern void CopyISOLatin1Lowered( extern void CopyISOLatin1Lowered(
unsigned char * /*dest*/, char * /*dest*/,
unsigned char * /*source*/, const char * /*source*/,
int /*length*/); int /*length*/);
extern int CompareISOLatin1Lowered( extern int CompareISOLatin1Lowered(
...@@ -511,7 +511,7 @@ extern Bool ClientIsAsleep( ...@@ -511,7 +511,7 @@ extern Bool ClientIsAsleep(
/* atom.c */ /* atom.c */
extern Atom MakeAtom( extern Atom MakeAtom(
char * /*string*/, const char * /*string*/,
unsigned /*len*/, unsigned /*len*/,
Bool /*makeit*/); Bool /*makeit*/);
......
...@@ -98,8 +98,8 @@ int rgb_dbm = 0; ...@@ -98,8 +98,8 @@ int rgb_dbm = 0;
#endif #endif
extern void CopyISOLatin1Lowered( extern void CopyISOLatin1Lowered(
unsigned char * /*dest*/, char * /*dest*/,
unsigned char * /*source*/, const char * /*source*/,
int /*length*/); int /*length*/);
int int
...@@ -191,8 +191,8 @@ typedef struct _dbEntry { ...@@ -191,8 +191,8 @@ typedef struct _dbEntry {
extern void CopyISOLatin1Lowered( extern void CopyISOLatin1Lowered(
unsigned char * /*dest*/, char * /*dest*/,
unsigned char * /*source*/, const char * /*source*/,
int /*length*/); int /*length*/);
static dbEntryPtr hashTab[HASHSIZE]; static dbEntryPtr hashTab[HASHSIZE];
...@@ -354,7 +354,7 @@ lookup(char *name, int len, Bool create) ...@@ -354,7 +354,7 @@ lookup(char *name, int len, Bool create)
char *str = name; char *str = name;
if (!(name = (char*)ALLOCATE_LOCAL(len +1))) return NULL; if (!(name = (char*)ALLOCATE_LOCAL(len +1))) return NULL;
CopyISOLatin1Lowered((unsigned char *)name, (unsigned char *)str, len); CopyISOLatin1Lowered(name, str, len);
name[len] = '\0'; name[len] = '\0';
for(str = name; *str; str++) { for(str = name; *str; str++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment