Difference for common/region.c from version 1.5 to 1.6


version 1.5 version 1.6
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_map_c =   * static char *rcsid_map_c =
  *   "$Id: region.c,v 1.5 2005/04/16 22:05:08 ryo_saeba Exp $";   *   "$Id: region.c,v 1.6 2005/07/17 11:00:03 ryo_saeba Exp $";
  */   */
   
 /*  /*
Line 68
 
Line 68
  * the map code.   * the map code.
  */   */
   
 char *get_name_of_region_for_map(mapstruct  *m) {  const char *get_name_of_region_for_map(mapstruct  *m) {
  region *reg;   region *reg;
  if (m->region!=NULL) return m->region->name;   if (m->region!=NULL) return m->region->name;
  for (reg=first_region;reg!=NULL;reg=reg->next) {   for (reg=first_region;reg!=NULL;reg=reg->next) {
Line 162
 
Line 162
  * 3. return a obviously wrong string if we can't get a longname, this should   * 3. return a obviously wrong string if we can't get a longname, this should
  *    never happen. We also log a debug message.   *    never happen. We also log a debug message.
  */   */
 char *get_region_longname(region *r) {  const char *get_region_longname(region *r) {
          
     if (r->longname!=NULL)       if (r->longname!=NULL)
     return r->longname;      return r->longname;
Line 174
 
Line 174
     }      }
 }  }
   
 char *get_region_msg(region *r) {  const char *get_region_msg(region *r) {
     if (r->msg!=NULL)       if (r->msg!=NULL)
     return r->msg;      return r->msg;
     else if(r->parent!=NULL)      else if(r->parent!=NULL)


Legend:
line(s) removed in v.1.5 
line(s) changed
 line(s) added in v.1.6

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