From jcowan@reutershealth.com Wed Jan 22 20:02:05 2003
Return-Path: <jcowan@reutershealth.com>
X-Sender: jcowan@reutershealth.com
X-Apparently-To: lojban@yahoogroups.com
Received: (EGP: mail-8_2_3_0); 23 Jan 2003 04:02:05 -0000
Received: (qmail 41469 invoked from network); 23 Jan 2003 04:02:04 -0000
Received: from unknown (66.218.66.217)
  by m8.grp.scd.yahoo.com with QMQP; 23 Jan 2003 04:02:04 -0000
Received: from unknown (HELO mail2.reutershealth.com) (65.246.141.151)
  by mta2.grp.scd.yahoo.com with SMTP; 23 Jan 2003 04:02:04 -0000
Received: from skunk.reutershealth.com ([10.65.117.21])
  by mail2.reutershealth.com (Pro-8.9.3/Pro-8.9.3) with SMTP id XAA15969
  for <lojban@yahoogroups.com>; Wed, 22 Jan 2003 23:14:57 -0500 (EST)
Message-Id: <200301230414.XAA15969@mail2.reutershealth.com>
Received: by skunk.reutershealth.com (sSMTP sendmail emulation); Wed, 22 Jan 2003 23:02:02 +4300
Subject: Re: [lojban] C question: How to or strings and get a string?
To: lojban@yahoogroups.com (Lojban List)
Date: Wed, 22 Jan 2003 23:02:02 -0500 (EST)
In-Reply-To: <200301222226.16684.phma@webjockey.net> from "Pierre Abbat" at Jan 22, 2003 10:26:16 PM
X-Mailer: ELM [version 2.5 PL6]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
From: John Cowan <jcowan@reutershealth.com>
X-Yahoo-Group-Post: member; u=8122456
X-Yahoo-Profile: john_w_cowan

Pierre Abbat scripsit:

> monmapti returns NULL if it didn't match or a pointer to the first character 
> after the matching string if it does. is3rafsi is supposed to do the same, 
> but instead it returns 1, which confuses isslinkuhi, which then calls 
> is3rafsi(1) and crashes. 

That is because the value of || is always 0 or 1.

Have you proved that these macros are necessary to sufficiently speedy
performance? If you haven't, replace them with functions. Premature
optimization is the root of all evil.

-- 
John Cowan jcowan@reutershealth.com www.reutershealth.com www.ccil.org/~cowan
Assent may be registered by a signature, a handshake, or a click of a computer
mouse transmitted across the invisible ether of the Internet. Formality
is not a requisite; any sign, symbol or action, or even willful inaction,
as long as it is unequivocally referable to the promise, may create a contract.
--_Specht v. Netscape_

