version 1.4 | | version 1.5 |
---|
| | |
/* | | /* |
* static char *rcsid_map_c = | | * static char *rcsid_map_c = |
* "$Id: region.c,v 1.4 2005/04/14 19:15:39 ryo_saeba Exp $"; | | * "$Id: region.c,v 1.5 2005/04/16 22:05:08 ryo_saeba Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
* message and returns NULL | | * message and returns NULL |
* used by the map parsing code. | | * used by the map parsing code. |
*/ | | */ |
region *get_region_by_name(char *region_name) { | | region *get_region_by_name(const char *region_name) { |
region *reg; | | region *reg; |
char *p = strchr(region_name, '\n'); | | char *p = strchr(region_name, '\n'); |
if (p) *p = '\0'; | | if (p) *p = '\0'; |
| | |
* If we got a NULL, then just return the top level region | | * If we got a NULL, then just return the top level region |
* | | * |
*/ | | */ |
region *get_region_from_string(char *name) { | | region *get_region_from_string(const char *name) { |
region *reg; | | region *reg; |
char *substr; | | char *substr; |
char *p; | | char *p; |