From de959859462bcae9a88fbb021abb3f18af4032ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jurko=20Gospodneti=C4=87?= Date: Tue, 26 Jun 2012 10:36:21 +0000 Subject: [PATCH] Boost Jam code cleanup - Removed the unneeded CMD structure tail member. [SVN r79102] --- v2/engine/command.h | 1 - v2/engine/make1.c | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/v2/engine/command.h b/v2/engine/command.h index 03011abba..64e8519fb 100644 --- a/v2/engine/command.h +++ b/v2/engine/command.h @@ -49,7 +49,6 @@ typedef struct _cmd CMD; struct _cmd { CMD * next; - CMD * tail; /* valid on in head */ RULE * rule; /* rule->actions contains shell script */ LIST * shell; /* $(JAMSHELL) value */ LOL args; /* LISTs for $(<), $(>) */ diff --git a/v2/engine/make1.c b/v2/engine/make1.c index e810ffd5e..ca93d213f 100644 --- a/v2/engine/make1.c +++ b/v2/engine/make1.c @@ -971,6 +971,7 @@ static void swap_settings static CMD * make1cmds( TARGET * t ) { CMD * cmds = 0; + CMD * * cmds_next = &cmds; LIST * shell = L0; module_t * settings_module = 0; TARGET * settings_target = 0; @@ -1112,9 +1113,8 @@ static CMD * make1cmds( TARGET * t ) if ( accept_command ) { /* Chain it up. */ - if ( !cmds ) cmds = cmd; - else cmds->tail->next = cmd; - cmds->tail = cmd; + *cmds_next = cmd; + cmds_next = &cmd->next; /* Mark lists we need recreated for the next command since * they got consumed by the cmd object.