[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lojban] C question: How to or strings and get a string?
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/