MCPcopy Create free account
hub / github.com/boostorg/build / cmd_new

Function cmd_new

src/engine/command.cpp:61–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59 */
60
61CMD * cmd_new( RULE * rule, LIST * targets, LIST * sources, LIST * shell )
62{
63 CMD * cmd = (CMD *)BJAM_MALLOC( sizeof( CMD ) );
64 FRAME frame[ 1 ];
65
66 assert( cmd );
67 cmd->rule = rule;
68 cmd->shell = shell;
69 cmd->next = 0;
70 cmd->noop = 0;
71 cmd->asynccnt = 1;
72 cmd->status = 0;
73 cmd->lock = NULL;
74 cmd->unlock = NULL;
75
76 lol_init( &cmd->args );
77 lol_add( &cmd->args, targets );
78 lol_add( &cmd->args, sources );
79 string_new( cmd->buf );
80
81 frame_init( frame );
82 frame->module = rule->module;
83 lol_init( frame->args );
84 lol_add( frame->args, list_copy( targets ) );
85 lol_add( frame->args, list_copy( sources ) );
86 function_run_actions( rule->actions->command, frame, stack_global(),
87 cmd->buf );
88 frame_free( frame );
89
90 return cmd;
91}
92
93
94/*

Callers 1

make1cmdsFunction · 0.85

Calls 8

lol_initFunction · 0.85
lol_addFunction · 0.85
string_newFunction · 0.85
frame_initFunction · 0.85
list_copyFunction · 0.85
function_run_actionsFunction · 0.85
stack_globalFunction · 0.85
frame_freeFunction · 0.85

Tested by

no test coverage detected