This is the mail archive of the
xconq7@sources.redhat.com
mailing list for the Xconq project.
Re: Compile Warnings
- From: Eric McDonald <mcdonald at phy dot cmich dot edu>
- To: Hans Ronne <hronne at comhem dot se>
- Cc: xconq7 at sources dot redhat dot com
- Date: Mon, 10 May 2004 19:34:16 -0400 (EDT)
- Subject: Re: Compile Warnings
On Tue, 11 May 2004, Hans Ronne wrote:
> >#ifdef __cplusplus
> >#define BMAP_BYTE char
> >#else
> >#define BMAP_BYTE unsigned char
> >#endif
> And hack every bitmap file again?
Not by hand of course; perhaps:
#!/bin/bash
for f in `ls *.b`; do
sed 's/\ char\ /\ BMAP_BYTE\ /' $f
done
And then inspect the diffs to make sure that something quirky
didn't happen, such as the word " char " appearing in a comment
and getting changed.
>There must be a simpler way. Xconq can't
> be the first program in history that uses bitmaps and retains both C and
> C++ compatibility.
Agreed, but perhaps other programs did things the same as I
suggested in the previous mail? But, who cares, our way will work
too.
Eric