Difference for common/loader.l from version 1.74 to 1.75


version 1.74 version 1.75
Line 1
 
Line 1
 %{  %{
 /*  /*
  * static char *rcsid_object_c =   * static char *rcsid_object_c =
  *   "$Id: loader.l,v 1.74 2006/02/07 07:54:45 mwedel Exp $";   *   "$Id: loader.l,v 1.75 2006/02/17 21:29:47 akirschbaum Exp $";
  */   */
   
 /*  /*
Line 46
 
Line 46
 static char lorebuf[HUGE_BUF];  static char lorebuf[HUGE_BUF];
   
 /* Maps the MOVE_* values to names */  /* Maps the MOVE_* values to names */
 static char *move_name[] = {"walk", "fly_low", "fly_high", "swim", "boat",  static const char *const move_name[] = {"walk", "fly_low", "fly_high", "swim", "boat",
     NULL};      NULL};
   
 /* This table is only necessary to convert objects that existed before the  /* This table is only necessary to convert objects that existed before the
Line 59
 
Line 59
  * NULL entries in this table are valid - to denote objects that should   * NULL entries in this table are valid - to denote objects that should
  * not be updated for whatever reason.   * not be updated for whatever reason.
  */   */
 char *spell_mapping[] = {  const char *const spell_mapping[] = {
 "spell_magic_bullet", /* 0 */  "spell_magic_bullet", /* 0 */
 "spell_small_fireball", /* 1 */  "spell_small_fireball", /* 1 */
 "spell_medium_fireball", /* 2 */  "spell_medium_fireball", /* 2 */
Line 1439
 
Line 1439
  * the 15'th element of this array should match that name.   * the 15'th element of this array should match that name.
  * If an entry is NULL, that is a flag not to loaded/saved.   * If an entry is NULL, that is a flag not to loaded/saved.
  */   */
 static char *flag_names[NUM_FLAGS+1] = {  static const char *const flag_names[NUM_FLAGS+1] = {
 "alive", "wiz", NULL, NULL, "was_wiz", "applied", "unpaid",  "alive", "wiz", NULL, NULL, "was_wiz", "applied", "unpaid",
 "can_use_shield", "no_pick", NULL /* walk_on*/, NULL /* no_pass */, /* 10 */  "can_use_shield", "no_pick", NULL /* walk_on*/, NULL /* no_pass */, /* 10 */
 "is_animated", NULL /* slow_move */,   "is_animated", NULL /* slow_move */,
Line 1483
 
Line 1483
   
 /*For get_ob_diff speed reason*/  /*For get_ob_diff speed reason*/
 typedef struct {  typedef struct {
     char* name;      const char *name;
     int   length;      int   length;
 }genericname;  }genericname;
 static genericname evtnames[13]=  static genericname evtnames[13]=


Legend:
line(s) removed in v.1.74 
line(s) changed
 line(s) added in v.1.75

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