palito-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [palito-dev] /cheat -ansi -pedantic


From: zed
Subject: Re: [palito-dev] /cheat -ansi -pedantic
Date: Sat, 16 Aug 2003 00:50:33 -0300
User-agent: Mutt/1.4.1i

On Sat, Aug 16, 2003 at 04:56:20AM +0100, Tom Barnes-Lawrence wrote:
> On Fri, Aug 15, 2003 at 04:56:57PM -0300, address@hidden wrote:
> > 
> Looking in the source:
> 710  void draw_menu()
> 711  {
> 712          int i;
> 713          int icsz2 = icon_size/2;
> 714          if(menu_owner == NULL) {
> 715                  if(last_menu_owner == NULL)
> 716                          return;
> 717  
> 718                  // exit animation
> 719                  float d = client_width - menu_rect.x;
> 
> 
>  Ah, the wonders of declaring variables local to blocks. This time,
> you've got one after the first statement of the block- I didn't know
> any version of C supported *that*...
> 
>  Incidentally, why do you keep doing that? 
>  Anyways, swapping those lines around in visual.c made it compile OK.

barrett: better add CFLAGS += -ansi -pedantic

from gcc manpage:
> The `-ansi' option does not cause non-ANSI programs to be rejected
> Gratuitously.  For that,  `-pedantic' is required in addition to `-ansi'.

> 
>  Cheers for the link to IWR, BTW. I'll put out a new bugfixy version soon,
> but I'll need to discuss heightmaps and stuff before I can do more.
> 
I'm looking forward that :)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]