version 1.5 | | version 1.6 |
---|
| | |
/* | | /* |
* 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 $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
* 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) { |
| | |
* 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; |
| | |
} | | } |
} | | } |
| | |
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) |