Re: ELKS port of Adventure - help needed :)

Richard Wallman
2002-12-11T22:46:12Z

On 11 Dec, I wrote:

{SNIP: a load of rubbish}

Scratch all that, I did a quick test and bcc is fine.

I blame tiredness. >:)

Still getting -1 each time for the comparison in vocab.c though. I even
tried "check=1" before the "check = strcmp(w, wc[mid].aword);" line,
and it still comes up -1 each time.

Just tried pasting the bit of C from the end of the libc code:
--------------------------------------------------------------
int newcmp(d, s)
const char *d;
const char * s;
{
register char *s1=(char *)d, *s2=(char *)s, c1,c2;
while((c1= *s1++) == (c2= *s2++) && c1 );
return c1 - c2;
};
--------------------------------------------------------------

Put that in vocab.c, replace the reference in the "binary" function, and
it all works smoothly (for that function at least).

Looks like the only useful part of my last post was the suggestion to
replace strcmp.

There's a problem here somewhere, but I'm damned if I can find it
right now.

Yawn...time for bed...
--
Richard Wallman