cvs commit: patches/tuxracer tuxracer-0.61-gcc34-1.patch

jim at linuxfromscratch.org jim at linuxfromscratch.org
Thu May 20 16:30:23 PDT 2004


jim         04/05/20 17:30:23

  Added:       tuxracer tuxracer-0.61-gcc34-1.patch
  Log:
  Added: tuxracer-0.61-gcc34-1.patch
  
  Revision  Changes    Path
  1.1                  patches/tuxracer/tuxracer-0.61-gcc34-1.patch
  
  Index: tuxracer-0.61-gcc34-1.patch
  ===================================================================
  Submitted By: Jeremy Utley (jeremy at linuxfromscratch.org)
  Date: 2004-05-20
  Initial Package Version: 0.61
  Upstream Status: Not Submitted
  Origin: Self Created
  Description: Fixes syntax issues with GCC 3.4
  
  diff -aur tuxracer-0.61.orig/src/game_config.c 
  tuxracer-0.61/src/game_config.c
  --- tuxracer-0.61.orig/src/game_config.c	2001-01-30 15:04:43.000000000 -0500
  +++ tuxracer-0.61/src/game_config.c	2004-04-27 12:17:15.074518981 -0400
  @@ -114,26 +114,26 @@
    */
   
   #define INIT_PARAM( nam, val, typename, commnt ) \
  -   Params. ## nam ## .loaded = False; \
  -   Params. ## nam ## .name = #nam; \
  -   Params. ## nam ## .deflt. ## typename ## _val  = val; \
  -   Params. ## nam ## .comment = commnt;
  +   Params. nam .loaded = False; \
  +   Params. nam .name = #nam; \
  +   Params. nam .deflt. typename ## _val  = val; \
  +   Params. nam .comment = commnt;
   
   #define INIT_PARAM_STRING( nam, val, commnt ) \
      INIT_PARAM( nam, val, string, commnt ); \
  -   Params. ## nam ## .type = PARAM_STRING;
  +   Params. nam .type = PARAM_STRING;
   
   #define INIT_PARAM_CHAR( nam, val, commnt ) \
      INIT_PARAM( nam, val, char, commnt ); \
  -   Params. ## nam ## .type = PARAM_CHAR;
  +   Params. nam .type = PARAM_CHAR;
   
   #define INIT_PARAM_INT( nam, val, commnt ) \
      INIT_PARAM( nam, val, int, commnt ); \
  -   Params. ## nam ## .type = PARAM_INT;
  +   Params. nam .type = PARAM_INT;
   
   #define INIT_PARAM_BOOL( nam, val, commnt ) \
      INIT_PARAM( nam, val, bool, commnt ); \
  -   Params. ## nam ## .type = PARAM_BOOL;
  +   Params. nam .type = PARAM_BOOL;
   
   
   /*
  @@ -310,13 +310,13 @@
    */
   #define FN_PARAM( name, typename, type ) \
       type getparam_ ## name() { \
  -        if ( !Params. ## name ## .loaded ) { \
  -            fetch_param_ ## typename( &( Params. ## name ) ); \
  +        if ( !Params. name .loaded ) { \
  +            fetch_param_ ## typename( &( Params. name ) ); \
           } \
  -        return Params. ## name ## .val. ## typename ## _val; \
  +        return Params. name .val. typename ## _val; \
       } \
       void setparam_ ## name( type val) { \
  -        set_param_ ## typename( &( Params. ## name ), val ); } 
  +        set_param_ ## typename( &( Params. name ), val ); } 
   
   #define FN_PARAM_STRING( name ) \
       FN_PARAM( name, string, char* )
  
  
  



More information about the patches mailing list