--- tuxracer-0.61/src/game_config.c.gcc 2003-05-23 16:37:33.000000000 +0200 +++ tuxracer-0.61/src/game_config.c 2003-06-04 18:35:46.000000000 +0200 @@ -114,27 +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; + INIT_PARAM( nam, val, string, commnt ); \ + Params. nam .type = PARAM_STRING; #define INIT_PARAM_CHAR( nam, val, commnt ) \ - INIT_PARAM( nam, val, char, commnt ); \ - Params. ## nam ## .type = PARAM_CHAR; + INIT_PARAM( nam, val, char, commnt ); \ + Params. nam .type = PARAM_CHAR; #define INIT_PARAM_INT( nam, val, commnt ) \ - INIT_PARAM( nam, val, int, commnt ); \ - Params. ## nam ## .type = PARAM_INT; + INIT_PARAM( nam, val, int, commnt ); \ + Params. nam .type = PARAM_INT; #define INIT_PARAM_BOOL( nam, val, commnt ) \ - INIT_PARAM( nam, val, bool, commnt ); \ - Params. ## nam ## .type = PARAM_BOOL; - + INIT_PARAM( nam, val, bool, commnt ); \ + Params. nam .type = PARAM_BOOL; /* * These functions are used to get and set parameter values @@ -309,26 +308,26 @@ * Creates set/get functions for each parameter */ #define FN_PARAM( name, typename, type ) \ - type getparam_ ## name() { \ - if ( !Params. ## name ## .loaded ) { \ - fetch_param_ ## typename( &( Params. ## name ) ); \ - } \ - return Params. ## name ## .val. ## typename ## _val; \ - } \ - void setparam_ ## name( type val) { \ - set_param_ ## typename( &( Params. ## name ), val ); } + type getparam_ ## name() { \ + if ( !Params. name .loaded ) { \ + fetch_param_ ## typename( &( Params. name ) ); \ + } \ + return Params. name .val. typename ## _val; \ + } \ + void setparam_ ## name( type val) { \ + set_param_ ## typename( &( Params. name ), val ); } #define FN_PARAM_STRING( name ) \ - FN_PARAM( name, string, char* ) + FN_PARAM( name, string, char* ) #define FN_PARAM_CHAR( name ) \ - FN_PARAM( name, char, char ) + FN_PARAM( name, char, char ) #define FN_PARAM_INT( name ) \ - FN_PARAM( name, int, int ) + FN_PARAM( name, int, int ) #define FN_PARAM_BOOL( name ) \ - FN_PARAM( name, bool, bool_t ) + FN_PARAM( name, bool, bool_t ) /*