diff options
author | rws <empty> | 1990-06-15 17:19:26 +0000 |
---|---|---|
committer | rws <empty> | 1990-06-15 17:19:26 +0000 |
commit | 834d91cb754d9b24a3d20eec56ee3f005dd111d8 (patch) | |
tree | ac8373bfb261c78a9a2fd3843b6286704f773310 | |
parent | c72b53ac99b5d5debcfdeddac21636238cd14175 (diff) |
move xrmtypes here from XrmI.h
make xrmtypes Const
-rw-r--r-- | xc/lib/X11/Xrm.c | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/xc/lib/X11/Xrm.c b/xc/lib/X11/Xrm.c index fb40a1246..9598037f4 100644 --- a/xc/lib/X11/Xrm.c +++ b/xc/lib/X11/Xrm.c @@ -1,6 +1,6 @@ /* - * $XConsortium: Xrm.c,v 1.37 90/06/14 08:23:53 rws Exp $ + * $XConsortium: Xrm.c,v 1.38 90/06/15 11:21:35 rws Exp $ */ /*********************************************************** @@ -36,6 +36,11 @@ SOFTWARE. #include <X11/Xos.h> #endif /* SYSV */ +#ifdef __STDC__ +#define Const const +#else +#define Const /**/ +#endif /* @@ -107,6 +112,24 @@ static int maxResourceQuark = -1; #define IsResourceQuark(q) ((q) <= maxResourceQuark && resourceQuarks[q]) +#define NUM_CHARS 256 +static unsigned short Const _xrmtypes[NUM_CHARS] = { + _EOF,0,0,0,0,0,0,0,0,SPACE, /* 0. */ + EOL,0,0,0,0,0,0,0,0,0, /* 10. */ + 0,0,0,0,0,0,0,0,0,0, /* 20. */ + 0,0,SPACE,COMMENT,0,0,0,0,0,0, /* 30. */ + 0,0,LOOSE,0,0,0,TIGHT,0,ODIGIT,ODIGIT, + ODIGIT,ODIGIT,ODIGIT,ODIGIT,ODIGIT, /* 50. */ + ODIGIT,0,0,SEP,0, /* 55. */ + 0,0,0,0,0,0,0,0,0,0, /* 60. */ + 0,0,0,0,0,0,0,0,0,0, /* 70. */ + 0,0,0,0,0,0,0,0,0,0, /* 80. */ + 0,0,BSLASH,0,0,0,0,0,0,0, /* 90. */ + 0,0,0,0,0,0,0,0,0,0, /* 100. */ + N,0,0,0,0,0,0,0,0,0, /* 110. */ + /* The rest will be automatically initialized to zero. */ +}; + #define CHUNK_SIZE 5100 #ifdef TESTLOCALMALLOC |