delorie.com/archives/browse.cgi | search |
Date: | Tue, 4 Jul 2000 23:34:24 +0200 |
From: | Marc Lehmann <pcg AT goof DOT com> |
To: | pgcc AT delorie DOT com |
Subject: | Re: What's up with this?? |
Message-ID: | <20000704233424.B6385@cerebro.laendle> |
Mail-Followup-To: | Marc Lehmann <pcg AT goof DOT com>, pgcc AT delorie DOT com |
References: | <9524EA4E18D6D2119FEA0008C7C5A00672F91E AT lneis01nok> <04aa01bfe5f1$0ccb91d0$4f0cf5d1 AT wt DOT net> |
Mime-Version: | 1.0 |
User-Agent: | Mutt/1.2.1i |
In-Reply-To: | <04aa01bfe5f1$0ccb91d0$4f0cf5d1@wt.net>; from rdh@wt.net on Tue, Jul 04, 2000 at 01:50:03PM -0600 |
X-Operating-System: | Linux version 2.2.15 (root AT cerebro) (gcc version 2.95.1 19990816 (release)) |
Reply-To: | pgcc AT delorie DOT com |
Errors-To: | nobody AT delorie DOT com |
X-Mailing-List: | pgcc AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
On Tue, Jul 04, 2000 at 01:50:03PM -0600, RH <rdh AT wt DOT net> wrote: > do { > /*stuff*/ > while(0); > I don't get this... Seems stupid and pointless. Consider a macro like this: #define doit() call_something(); call_something_else() And then this: if () doit(); Doing it using the while loops makes it a statement in all cases (there are more subtle problems that are solved). -- -----==- | ----==-- _ | ---==---(_)__ __ ____ __ Marc Lehmann +-- --==---/ / _ \/ // /\ \/ / pcg AT opengroup DOT org |e| -=====/_/_//_/\_,_/ /_/\_\ XX11-RIPE --+ The choice of a GNU generation | |
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |