summaryrefslogtreecommitdiff
path: root/job.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2007-05-11 20:57:21 +0000
committerPaul Smith <psmith@gnu.org>2007-05-11 20:57:21 +0000
commiteda0e24ccdae279a2c12059242ef89a22c274047 (patch)
treec5c6f8db878558a3982a117c3c331642334794c2 /job.c
parent52ebc531ce68b369594267a716e93f53720c8f1b (diff)
downloadgunmake-eda0e24ccdae279a2c12059242ef89a22c274047.tar.gz
Fix some documentation gitches.
Fix an uninitialized variable. Add builtin rules for Objective C. Add a new debug line that shows where the commands that are about to be run were defined.
Diffstat (limited to 'job.c')
-rw-r--r--job.c17
1 files changed, 13 insertions, 4 deletions
diff --git a/job.c b/job.c
index 52af31a..a05c356 100644
--- a/job.c
+++ b/job.c
@@ -1482,10 +1482,10 @@ start_waiting_job (struct child *c)
void
new_job (struct file *file)
{
- register struct commands *cmds = file->cmds;
- register struct child *c;
+ struct commands *cmds = file->cmds;
+ struct child *c;
char **lines;
- register unsigned int i;
+ unsigned int i;
/* Let any previously decided-upon jobs that are waiting
for the load to go down start before this new one. */
@@ -1723,7 +1723,16 @@ new_job (struct file *file)
/* The job is now primed. Start it running.
(This will notice if there are in fact no commands.) */
- (void) start_waiting_job (c);
+ if (cmds->fileinfo.filenm)
+ DB (DB_BASIC, (_("Invoking commands from %s:%lu to update target `%s'.\n"),
+ cmds->fileinfo.filenm, cmds->fileinfo.lineno,
+ c->file->name));
+ else
+ DB (DB_BASIC, (_("Invoking builtin commands to update target `%s'.\n"),
+ c->file->name));
+
+
+ start_waiting_job (c);
if (job_slots == 1 || not_parallel)
/* Since there is only one job slot, make things run linearly.