Description
http://nagoya.apache.org/eyebrowse/ReadMsg?listName=log4cxx-user@logging.apache.org&msgNo=569
From: Sluis, Minto van der <Minto.van.der.Sluis@isc.politie.nl>
Subject: Removing trailing semicolon for namespaces.
Date: Mon, 13 Dec 2004 16:03:32 +0100
Content-Type: multipart/alternative;
boundary="----_=_NextPart_001_01C4E124.E95A7BB0"
Hi,
I tried to compile log4cxx for for tru64 using the compaq compiler.
Unfortunately I ran into a lot of compiler errors. Below is a script
to resolve a few of the errors. This script strips the trailing semi-
colon from namespace declarations.
for f in `find . -name "*.h"`; do
cp $f $f.original
sed -e "s/}; \/\/name/} \/\/ name/g" -e "s/}; \/\/ name/} \/\/
name/g" $f > $f.modified
mv $f.modified $f
done
For instance:
namespace log4cxx
and
namespace log4cxx
{ ... }
; //namespace
gets converted to:
namespace log4cxx
// namespace
Many compilers do not mind the additional semi-colon, however since
building on tru64 automatically turns on strict ansi. This is results
is a lot of errors (warnings if strict ansi is turned of). Compile
output looks much cleaner with the semi-colons gone.
cheers,
Minto van der Sluis