This is the mail archive of the xconq7@sources.redhat.com mailing list for the Xconq project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]