On Sat, Dec 18, 2004 at 02:00:55AM -0500, Albert Cahalan wrote:
> On Sat, 2004-12-18 at 00:48, John Popplewell wrote:
> > Hi,
> > 
> > just checked out cvs and tried to build it - lots of errors, no surprise
> > - its been a while.
> > 
> > A number of them are because I had to change to compiling 'tuxpaint.c'
> > as C++ code because of new variable declarations in the middle of
> > functions - a style I like, by the way.
> 
> Ugh. It's still C. The 1999 standard introduces the ability
> to declare variables that are not at the beginning of a block.
> (even the 1989 standard allowed declarations at the beginning
> of any block, such as right after the "{" of an "if")
> 
I know. VC6 stinks. I will have a look at mingw/msys for building Tux
Paint itself.

> > These points are about MSVC++ errors not warnings:
> >  - mixing signed/unsigned char*
> >  - 'missing' casts on the return value of malloc() and calloc()
> 
> That's because you're not using a C compiler. 
Indeed.

> It's 2004 now, can't you come up with a 1999-standard C compiler for
> Windows?
> 
I quite like the debugger, and the heap debugging stuff is great, but
I've been straining the build mechanism for a few years now, so it's
probably time for me to move back to Vim and Make files again :-)

> I'd much rather move the variable declarations to the beginning
> of a block (not all the way to the top of functions) if you are
> unable to come up with a 1999+ compiler for Windows.
> 
> > Shall I just check in my changes and be dammed? :-)
I'll try something else then, and check the other errors in later.

> 
> No. It's really nasty the way C++ castrated void. I think the
> committee basically hated void and wanted to kill it.
I always though void was a neat trick to avoid lots of unneccessary and
ugly casts - oh well,

cheers,
John Popplewell.

> 
> 
> _______________________________________________
> Tuxpaint-dev mailing list
> [EMAIL PROTECTED]
> http://tux4kids.net/mailman/listinfo/tuxpaint-dev
_______________________________________________
Tuxpaint-dev mailing list
[EMAIL PROTECTED]
http://tux4kids.net/mailman/listinfo/tuxpaint-dev

Reply via email to