Path: utzoo!attcan!uunet!zephyr.ens.tek.com!uw-beaver!uw-june!fred.cs.washington.edu!machaffi From: machaffi@fred.cs.washington.edu (Scott MacHaffie) Newsgroups: comp.lang.c Subject: Re: #define end_{if|for|while|switch} } Was: Re: #define OR || Message-ID: <10649@june.cs.washington.edu> Date: 8 Feb 90 18:37:37 GMT References: <1990Jan27.183050.8226@calvin.spp.cornell.edu> <660074@hpclapd.HP.COM> Sender: news@cs.washington.edu Reply-To: machaffi@fred.cs.washington.edu.cs.washington.edu (Scott MacHaffie) Organization: University Lines: 31 In article <660074@hpclapd.HP.COM> defaria@hpclapd.HP.COM (Andy DeFaria) writes: > IF () THEN > ... > ... > ... > ELSE > foo; > ENDIF d i++; > >Even with the wrong indentation it is pretty aparent that foo and i++ are >not executed on the same "level". What about the code IF () THEN ... ELSE foo; i++; ENDIF Are foo and i++ executed at the same level? What if the define's are as follows: #define IF if #define THEN /* start of an if statement */ #define ELSE else #define ENDIF /* end of an if statement */ Scott MacHaffie