SunOS can rot in hell.
This commit is contained in:
parent
4e3a2cc1f9
commit
be22ae2d07
52 changed files with 211 additions and 160 deletions
|
|
@ -7,15 +7,19 @@
|
|||
* American Heritage Dictionary (encrypted)
|
||||
*/
|
||||
|
||||
static Rune intab[256] = {
|
||||
[0x82] 0xe9,
|
||||
[0x85] 0xe0,
|
||||
[0x89] 0xeb,
|
||||
[0x8a] 0xe8,
|
||||
[0xa4] 0xf1,
|
||||
[0xf8] 0xb0,
|
||||
[0xf9] 0xb7,
|
||||
};
|
||||
static Rune intab[256];
|
||||
|
||||
static void
|
||||
initintab(void)
|
||||
{
|
||||
intab[0x82] = 0xe9;
|
||||
intab[0x85] = 0xe0;
|
||||
intab[0x89] = 0xeb;
|
||||
intab[0x8a] = 0xe8;
|
||||
intab[0xa4] = 0xf1;
|
||||
intab[0xf8] = 0xb0;
|
||||
intab[0xf9] = 0xb7;
|
||||
}
|
||||
|
||||
static char tag[64];
|
||||
|
||||
|
|
@ -33,6 +37,7 @@ ahdprintentry(Entry e, int cmd)
|
|||
int c, state = Run;
|
||||
|
||||
if(!inited){
|
||||
initintab();
|
||||
for(c=0; c<256; c++)
|
||||
if(intab[c] == 0)
|
||||
intab[c] = c;
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ inittagtab(void)
|
|||
tagtab[TI]= "TI";
|
||||
tagtab[TX]= "TX";
|
||||
tagtab[VD]= "VD";
|
||||
};
|
||||
}
|
||||
|
||||
static char *mget(int, char *, char *, char **);
|
||||
#if 0
|
||||
|
|
|
|||
|
|
@ -992,7 +992,7 @@ static int naux;
|
|||
static char auxname[Maxaux][Buflen];
|
||||
static char auxval[Maxaux][Buflen];
|
||||
static char spec[Buflen];
|
||||
static uchar *auxstate[Naux]; /* vals for most recent tag */
|
||||
static char *auxstate[Naux]; /* vals for most recent tag */
|
||||
static Entry curentry;
|
||||
#define cursize (curentry.end-curentry.start)
|
||||
|
||||
|
|
@ -1154,7 +1154,7 @@ oedprintentry(Entry e, int cmd)
|
|||
outchars(auxstate[Num]);
|
||||
outchars(") ");
|
||||
} else if(t == Sgk) {
|
||||
i = grtab[auxstate[Num][0]];
|
||||
i = grtab[(uchar)auxstate[Num][0]];
|
||||
if(i != NONE)
|
||||
outrune(i);
|
||||
outchars(". ");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue