cpp

Sujoy Mitra sujm at pug.ece.cmu.edu
Fri May 31 00:58:05 AEST 1991


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 at pug.ECE.CMU.EDU (Sujoy Mitra)
Reply-To: sujm at pug.ECE.CMU.EDU (Sujoy Mitra)
Organization: Electrical and Computer Engineering, Carnegie Mellon
Subject: 
Keywords: 



More information about the Comp.unix.shell mailing list