(set_command_state): New function.
authorRoland McGrath <roland@redhat.com>
Wed, 7 Sep 1994 00:02:25 +0000 (00:02 +0000)
committerRoland McGrath <roland@redhat.com>
Wed, 7 Sep 1994 00:02:25 +0000 (00:02 +0000)
file.c

diff --git a/file.c b/file.c
index 1545291..be333f4 100644 (file)
--- a/file.c
+++ b/file.c
@@ -385,6 +385,19 @@ snap_deps ()
     export_all_variables = 1;
 }
 \f
+/* Set the `command_state' member of FILE and all its `also_make's.  */
+
+void
+set_command_state (file, state)
+     struct file *file;
+     int state;
+{
+  file->command_state = state;
+
+  for (d = file->also_make; d != 0; d = d->next)
+    d->command_state = state;
+}
+\f
 /* Print the data base of files.  */
 
 static void