Path: utzoo!mnetor!uunet!mcvax!ukc!stc!ist!rb From: rb@ist.CO.UK (News reading a/c for rb) Newsgroups: comp.lang.c Subject: Re: CPP defines... Message-ID: <179@istop.ist.CO.UK> Date: 3 Mar 88 20:36:35 GMT References: <14192@hc.DSPO.GOV> Organization: Imperial Software Technology, London, UK Lines: 10 Here's a nasty little script that comes in useful when you want to know what your cpp *really* predefines: we have found that the man page is sometimes economical with the truth. Those of you without strings(1) and/or a separate /lib/cpp will have to use your imagination. -------------------------------------------------------------- #!/bin/sh strings -a -2 /lib/cpp | sed '/^a-zA-Z0-9_/!s/.*/#ifdef &\ "%&"\ #endif/p' |/lib/cpp |sed -n '/%/s/[%"]//gp'