version 1.72 | | version 1.73 |
---|
| | |
/* | | /* |
* static char *rcsid_map_c = | | * static char *rcsid_map_c = |
* "$Id: map.c,v 1.72 2005/03/19 08:35:08 mwedel Exp $"; | | * "$Id: map.c,v 1.73 2005/04/14 19:15:27 ryo_saeba Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
* it really should be called create_mapname | | * it really should be called create_mapname |
*/ | | */ |
| | |
char *create_pathname (char *name) { | | const char *create_pathname (const char *name) { |
static char buf[MAX_BUF]; | | static char buf[MAX_BUF]; |
| | |
/* Why? having extra / doesn't confuse unix anyplace? Dependancies | | /* Why? having extra / doesn't confuse unix anyplace? Dependancies |
| | |
* same as create_pathname, but for the overlay maps. | | * same as create_pathname, but for the overlay maps. |
*/ | | */ |
| | |
char *create_overlay_pathname (char *name) { | | const char *create_overlay_pathname (const char *name) { |
static char buf[MAX_BUF]; | | static char buf[MAX_BUF]; |
| | |
/* Why? having extra / doesn't confuse unix anyplace? Dependancies | | /* Why? having extra / doesn't confuse unix anyplace? Dependancies |
| | |
* files than full directory structure, but if this is problem it can | | * files than full directory structure, but if this is problem it can |
* be changed. | | * be changed. |
*/ | | */ |
static char *create_items_path (char *s) { | | static const char *create_items_path (const char *s) { |
static char buf[MAX_BUF]; | | static char buf[MAX_BUF]; |
char *t; | | char *t; |
| | |
| | |
* that seems to be missing the prepend_dir processing | | * that seems to be missing the prepend_dir processing |
*/ | | */ |
| | |
int check_path (char *name, int prepend_dir) | | int check_path (const char *name, int prepend_dir) |
{ | | { |
char buf[MAX_BUF]; | | char buf[MAX_BUF]; |
#ifndef WIN32 | | #ifndef WIN32 |
| | |
* managed map list. | | * managed map list. |
*/ | | */ |
| | |
mapstruct *load_original_map(char *filename, int flags) { | | mapstruct *load_original_map(const char *filename, int flags) { |
FILE *fp; | | FILE *fp; |
mapstruct *m; | | mapstruct *m; |
int comp; | | int comp; |
| | |
* option if we can't find the original map) | | * option if we can't find the original map) |
*/ | | */ |
| | |
mapstruct *load_overlay_map(char *filename, mapstruct *m) { | | mapstruct *load_overlay_map(const char *filename, mapstruct *m) { |
FILE *fp; | | FILE *fp; |
int comp; | | int comp; |
char pathname[MAX_BUF]; | | char pathname[MAX_BUF]; |