summaryrefslogtreecommitdiff
path: root/commands.h
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2006-11-18 20:53:44 +0000
committerPaul Smith <psmith@gnu.org>2006-11-18 20:53:44 +0000
commit46beea19712087505c718a7d2fae4917f83baad0 (patch)
tree2605109d089f52e373bd976391dca85774ae3b21 /commands.h
parent236da55e367624c247f3f94ee906c23fde9cf96c (diff)
downloadmake-46beea19712087505c718a7d2fae4917f83baad0.tar.gz
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.
Diffstat (limited to 'commands.h')
-rw-r--r--commands.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands.h b/commands.h
index 3e790ea5..d717d9ca 100644
--- a/commands.h
+++ b/commands.h
@@ -36,7 +36,7 @@ struct commands
#define COMMANDS_NOERROR 4 /* No errors: -. */
void execute_file_commands (struct file *file);
-void print_commands (struct commands *cmds);
+void print_commands (const struct commands *cmds);
void delete_child_targets (struct child *child);
void chop_commands (struct commands *cmds);
void set_file_variables (struct file *file);