Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!sdd.hp.com!caen!malgudi!sunc!cis.ohio-state.edu!sei.cmu.edu!fs7.ece.cmu.edu!pug.ECE.CMU.EDU!sujm From: sujm@pug.ece.cmu.edu (Sujoy Mitra) Newsgroups: comp.unix.shell Subject: cpp Message-ID: <1991May30.145805.2451@fs7.ece.cmu.edu> Date: 30 May 91 14:58:05 GMT Sender: news@fs7.ece.cmu.edu (USENET News System) Distribution: usa Organization: Electrical and Computer Engineering, Carnegie Mellon Lines: 29 Originator: sujm@pug.ECE.CMU.EDU Is there a simple way to prevent the C-Preprocessor, /usr/lib/cpp from applying macro definitions recursively? According to the manual entry, the -R switch, 'permits recursion when a macro is expanded', but recursion seems to be the default! Consider something simple like: { #define POWER POWER - power POWER } This results in { power - power - power ... until some internal limit is exceeded. I am using '/usr/lib/cpp' to pre-process a data file. Path: sujm Newsgroups: Distribution: cmu Followup-To: From: sujm@pug.ECE.CMU.EDU (Sujoy Mitra) Reply-To: sujm@pug.ECE.CMU.EDU (Sujoy Mitra) Organization: Electrical and Computer Engineering, Carnegie Mellon Subject: Keywords: