Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83 (MC840302); site diku.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!mcvax!diku!storm From: storm@diku.UUCP (Kim Fabricius Storm) Newsgroups: net.lang.c Subject: Re: on1 construct Message-ID: <495@diku.UUCP> Date: Thu, 8-Nov-84 17:53:49 EST Article-I.D.: diku.495 Posted: Thu Nov 8 17:53:49 1984 Date-Received: Sat, 10-Nov-84 04:07:06 EST References: <124@cadvax> Organization: DIKU, U of Copenhagen, DK Lines: 31 [dette er en test] >From: jacob@cadvax (Jacobo Bulaevsky) <124@cadvax> 2-Nov-84 03:22:23 > > One contruct that I've always wanted to have is: > > function () > { > on1 { > bla, bla, bla... > }; > > etc... > } Try one of these: #define on1 \ static char FIRST_CALL = 1; \ if (FIRST_CALL && FIRST_CALL--) #define on1 \ static char FIRST_CALL = 1; \ for (; FIRST_CALL; FIRST_CALL = 0) --------------------- [Datalogy, what the H... is that?] Kim F. Storm @ Institute of Datalogy, University of Copenhagen, Denmark UUCP: ..mcvax!diku!storm