Difference for random_maps/reader.l from version 1.10 to 1.11


version 1.10 version 1.11
Line 1
 
Line 1
 %{  %{
 /*  /*
  * static char *reader_l =   * static char *reader_l =
  *   "$Id: reader.l,v 1.10 2006/05/21 19:38:26 akirschbaum Exp $";   *   "$Id: reader.l,v 1.11 2006/06/03 21:56:28 ryo_saeba Exp $";
  */   */
   
 /*  /*
Line 72
 
Line 72
   
   
   
 ^wallstyle{S}     strcpy(RP->wallstyle,rmap_yval());  ^wallstyle{S}     strncpy(RP->wallstyle,rmap_yval(),RM_SIZE);
 ^floorstyle{S}     strcpy(RP->floorstyle,rmap_yval());  ^floorstyle{S}     strncpy(RP->floorstyle,rmap_yval(),RM_SIZE);
 ^monsterstyle{S}    strcpy(RP->monsterstyle,rmap_yval());  ^monsterstyle{S}    strncpy(RP->monsterstyle,rmap_yval(),RM_SIZE);
 ^treasurestyle{S}   strcpy(RP->treasurestyle,rmap_yval());  ^treasurestyle{S}   strncpy(RP->treasurestyle,rmap_yval(),RM_SIZE);
 ^layoutstyle{S}     strcpy(RP->layoutstyle,rmap_yval());  ^layoutstyle{S}     strncpy(RP->layoutstyle,rmap_yval(),RM_SIZE);
 ^doorstyle{S}     strcpy(RP->doorstyle,rmap_yval());  ^doorstyle{S}     strncpy(RP->doorstyle,rmap_yval(),RM_SIZE);
 ^decorstyle{S}     strcpy(RP->decorstyle,rmap_yval());  ^decorstyle{S}     strncpy(RP->decorstyle,rmap_yval(),RM_SIZE);
 ^xsize{S}     RP->Xsize = IVAL;  ^xsize{S}     RP->Xsize = IVAL;
 ^ysize{S}     RP->Ysize = IVAL;  ^ysize{S}     RP->Ysize = IVAL;
 ^expand2x{S}        RP->expand2x = IVAL;  ^expand2x{S}        RP->expand2x = IVAL;
Line 89
 
Line 89
 ^difficulty{S}        RP->difficulty = IVAL;  ^difficulty{S}        RP->difficulty = IVAL;
 ^difficulty_increase{S}        RP->difficulty_increase = FVAL;  ^difficulty_increase{S}        RP->difficulty_increase = FVAL;
 ^decoroptions{S}      RP->decoroptions = IVAL;  ^decoroptions{S}      RP->decoroptions = IVAL;
 ^exitstyle{S}       strcpy(RP->exitstyle,rmap_yval());  ^exitstyle{S}       strncpy(RP->exitstyle,rmap_yval(),RM_SIZE);
 ^dungeon_level{S}   RP->dungeon_level = IVAL;  ^dungeon_level{S}   RP->dungeon_level = IVAL;
   ^dungeon_name{S} strncpy(RP->dungeon_name, rmap_yval(),RM_SIZE);
 ^dungeon_depth{S}   RP->dungeon_depth = IVAL;  ^dungeon_depth{S}   RP->dungeon_depth = IVAL;
 ^final_map{S}       strcpy(RP->final_map,rmap_yval());  ^final_map{S}       strncpy(RP->final_map,rmap_yval(),RM_SIZE);
 ^orientation{S}    RP-> orientation = IVAL;  ^orientation{S}    RP-> orientation = IVAL;
 ^origin_x{S}        RP->origin_x = IVAL;  ^origin_x{S}        RP->origin_x = IVAL;
 ^origin_y{S}       RP-> origin_y = IVAL;  ^origin_y{S}       RP-> origin_y = IVAL;
 ^origin_map{S}       strcpy(RP->origin_map,rmap_yval());  ^origin_map{S}       strncpy(RP->origin_map,rmap_yval(),RM_SIZE);
 ^random_seed{S}        RP->random_seed = IVAL;  ^random_seed{S}        RP->random_seed = IVAL;
 ^treasureoptions{S}    RP->treasureoptions = IVAL;  ^treasureoptions{S}    RP->treasureoptions = IVAL;
 ^exit_on_final_map{S} strcpy(RP->exit_on_final_map,rmap_yval());  ^exit_on_final_map{S} strncpy(RP->exit_on_final_map,rmap_yval(),RM_SIZE);
   
 <*>(^{WS}$)|\n {/* ignore empty lines, newlines we don't do above */}  <*>(^{WS}$)|\n {/* ignore empty lines, newlines we don't do above */}
 #.*\n {}  #.*\n {}


Legend:
line(s) removed in v.1.10 
line(s) changed
 line(s) added in v.1.11

File made using version 1.98 of cvs2html by leaf at 2011-07-21 17:56