From e4da30858037b431880263676e8f90b1f8412a38 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Sat, 18 Nov 2006 20:53:44 +0000 Subject: Fix from Eli for incorrect value of $(MAKE) on Cygwin. A few changes from char* to void* where appropriate, and removing of unnecessary casts. Much more work on const-ifying the codebase. This round involves some code changes to make it correct. NOTE!! There will almost certainly be problems on the non-POSIX ports that will need to be addressed after the const changes are finished: they will need to be const-ified properly and there may need to be some changes to allocate memory, etc. as well. The next (last?) big push for this, still to come, is const-ifying the filenames in struct file, struct dep, etc. This will allow us to store file names in the string cache and finally resolve Savannah bug #15182 (make uses too much memory), among other advantages. --- w32/include/pathstuff.h | 8 ++++---- w32/pathstuff.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'w32') diff --git a/w32/include/pathstuff.h b/w32/include/pathstuff.h index 55af520..0288496 100644 --- a/w32/include/pathstuff.h +++ b/w32/include/pathstuff.h @@ -18,9 +18,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. */ #ifndef _PATHSTUFF_H #define _PATHSTUFF_H -extern char * convert_Path_to_windows32(char *Path, char to_delim); -extern char * convert_vpath_to_windows32(char *Path, char to_delim); -extern char * w32ify(char *file, int resolve); -extern char * getcwd_fs(char *buf, int len); +char *convert_Path_to_windows32(char *Path, char to_delim); +char *convert_vpath_to_windows32(char *Path, char to_delim); +char *w32ify(const char *file, int resolve); +char *getcwd_fs(char *buf, int len); #endif diff --git a/w32/pathstuff.c b/w32/pathstuff.c index d425657..7f88010 100644 --- a/w32/pathstuff.c +++ b/w32/pathstuff.c @@ -83,7 +83,7 @@ convert_Path_to_windows32(char *Path, char to_delim) * Convert to forward slashes. Resolve to full pathname optionally */ char * -w32ify(char *filename, int resolve) +w32ify(const char *filename, int resolve) { static char w32_path[FILENAME_MAX]; char *p; -- cgit v1.2.3