From sentto-44114-18345-1043294525-lojban-in=lojban.org@returns.groups.yahoo.com Wed Jan 22 20:02:46 2003 Received: with ECARTIS (v1.0.0; list lojban-list); Wed, 22 Jan 2003 20:02:46 -0800 (PST) Received: from n14.grp.scd.yahoo.com ([66.218.66.69]) by digitalkingdom.org with smtp (Exim 4.05) id 18bYZZ-0004yi-00 for lojban-in@lojban.org; Wed, 22 Jan 2003 20:02:37 -0800 X-eGroups-Return: sentto-44114-18345-1043294525-lojban-in=lojban.org@returns.groups.yahoo.com Received: from [66.218.67.200] by n14.grp.scd.yahoo.com with NNFMP; 23 Jan 2003 04:02:05 -0000 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 ; 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 To: lojban@yahoogroups.com (Lojban List) 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] From: John Cowan X-Yahoo-Profile: john_w_cowan MIME-Version: 1.0 Mailing-List: list lojban@yahoogroups.com; contact lojban-owner@yahoogroups.com Delivered-To: mailing list lojban@yahoogroups.com Precedence: bulk Date: Wed, 22 Jan 2003 23:02:02 -0500 (EST) Subject: [lojban] Re: C question: How to or strings and get a string? Content-Type: text/plain; charset=US-ASCII X-archive-position: 3858 X-ecartis-version: Ecartis v1.0.0 Sender: lojban-list-bounce@lojban.org Errors-to: lojban-list-bounce@lojban.org X-original-sender: jcowan@reutershealth.com Precedence: bulk Reply-to: lojban-list@lojban.org X-list: lojban-list 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_ To unsubscribe, send mail to lojban-unsubscribe@onelist.com Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/