public inbox for linux-8086@vger.kernel.org
 help / color / mirror / Atom feed
From: Richard Wallman <r_wallman@yahoo.co.uk>
To: Linux 8086 <linux-8086@vger.kernel.org>
Subject: Re: ELKS port of Adventure - help needed :)
Date: Wed, 11 Dec 2002 22:46:12 +0000 (GMT)	[thread overview]
Message-ID: <200212112246.gBBMk95G010850@eddie.loc> (raw)
In-Reply-To: <200212112222.gBBMMA5G007271@eddie.loc>

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
http://www.murkygoth.uklinux.net/elks


  reply	other threads:[~2002-12-11 22:46 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-10 13:07 ELKS port of Adventure - help needed :) Paul Nasrat
2002-12-11  8:19 ` Phil Goembel
2002-12-11 21:27   ` Richard Wallman
2002-12-11 22:22     ` Richard Wallman
2002-12-11 22:46       ` Richard Wallman [this message]
2002-12-11 22:51       ` Paul Nasrat
2002-12-11 23:59       ` Phil Goembel
2002-12-12  7:39         ` Paul Nasrat
2002-12-12  8:18           ` Paul Nasrat
2002-12-12 19:11         ` Adventure - the answer to what went wrong? Richard Wallman
2002-12-12 20:21           ` Harry Kalogirou
2002-12-12 20:52           ` Alan Cox
2002-12-12 20:27             ` Dan Olson
2002-12-12 20:29               ` Harry Kalogirou
2002-12-12 20:41                 ` Dan Olson
2002-12-12 21:15               ` Alan Cox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200212112246.gBBMk95G010850@eddie.loc \
    --to=r_wallman@yahoo.co.uk \
    --cc=linux-8086@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox