Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 May 2002 19:07:38 +0100
From:      Tony Finch <dot@dotat.at>
To:        Giorgos Keramidas <keramida@FreeBSD.ORG>
Cc:        "David E. O'Brien" <obrien@FreeBSD.ORG>, committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG
Subject:   Re: cvs commit: src/sys/dev/asr asr.c dptalign.h dptsig.h i2oadptr.h i2obscsi.h i2odep.h i2odpt.h i2oexec.h i2omsg.h i2otypes.h i2outil.h osd_unix.h osd_util.h sys_info.h
Message-ID:  <20020515190738.C31038@chiark.greenend.org.uk>
In-Reply-To: <20020515171852.GB65155@hades.hell.gr>; from keramida@FreeBSD.ORG on Wed, May 15, 2002 at 08:18:52PM %2B0300
References:  <200205142159.g4ELxBg73906@freefall.freebsd.org> <20020515171852.GB65155@hades.hell.gr>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, May 15, 2002 at 08:18:52PM +0300, Giorgos Keramidas wrote:
> "David E. O'Brien" <obrien@FreeBSD.ORG> writes:
> >
> >   `unexpand -a' should be run _before_ sed 's/^#define /#define^I/g'.
> 
> I'd probably use a more elaborate regexp, if this is made part of a
> batch, automated tool though:
> 
> sed -e 's/^#[[:space:]]*define[[:space:]][[:space:]]*\([^[:space:]]\)/#define^I\1/'

Spaces are also allowed before the # of a preprocessing directive.

Tony.
-- 
f.a.n.finch <dot@dotat.at> http://dotat.at/
FAEROES: CYCLONIC 3 OR 4 IN NORTH AT FIRST, OTHERWISE WESTERLY BACKING
EASTERLY 4 OR 5, OCCASIONALLY 6. OCCASIONAL RAIN. MODERATE OR GOOD.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020515190738.C31038>