2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-15 13:02:11 +00:00

Boost Jam code cleanup - Removed the unneeded CMD structure tail member.

[SVN r79102]
This commit is contained in:
Jurko Gospodnetić
2012-06-26 10:36:21 +00:00
parent e87fae0285
commit de95985946
2 changed files with 3 additions and 4 deletions

View File

@@ -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 $(<), $(>) */

View File

@@ -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.