Article View: comp.mail.mush
Article #251Re: CTRL macro
From: Barton E. Schaefer
Date: Thu, 26 Oct 1989 18:56
Date: Thu, 26 Oct 1989 18:56
33 lines
1620 bytes
1620 bytes
In article <546F43626C@crdos1> davidsen@crdos1.crd.ge.com writes:
}
} The original definition of CTRL does not work in ANSI compilers,
Are you actually compiling mush on an ANSI compiler? Not to make excuses
for the way Dan wrote that macro, but it seems there are a *lot* of other
equally important things that would need to change to make mush pANS-C
conformant.
} What should really be done is to change all the calls to use a
} character argument (ie. CNTL('x'))
Here's an UNofficial Patch. :-)
#! /bin/sh -e
for f in `grep -l CTRL *.c`
do
/bin/mv $f $f.orig
echo "%s/CTRL(\([^)]*\))/CTRL('\1')/g|w $f|q" | ex - $f.orig
done
for f in `grep -l "define CTRL" *.h`
do
/bin/mv $f $f.orig
echo "/define CTRL/s/'\(.\)'/(\1)/|w $f|q" | ex - $f.orig
done
exit 0
You can even run that one over your 4.x BSD sources. ;->
--
Bart Schaefer "A Yellowbeard is never so dangerous as when he's dead."
-- Graham Chapman, 1941-1989
CSNET / Internet schaefer@cse.ogc.edu
UUCP ...{sequent,tektronix,verdix}!ogccse!schaefer
Technical Details
Message-ID:
<5293@ogccse.ogc.edu>Path:
arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!tut.cis.ohio-state.edu!unmvax!ogccse!schaeferReferences:
<546F43626C@crdos1>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!tut.cis.ohio-state.edu!unmvax!ogccse!schaefer From: schaefer@ogccse.ogc.edu (Barton E. Schaefer) Newsgroups: comp.mail.mush Subject: Re: CTRL macro Message-ID: <5293@ogccse.ogc.edu> Date: 26 Oct 89 18:56:38 GMT References: <546F43626C@crdos1> Reply-To: schaefer@ogccse.UUCP (Barton E. Schaefer) Organization: Oregon Graduate Center, Beaverton, OR Lines: 33