Lines Matching refs:cmd
29 CMDLIST * cmdlist_append_cmd( CMDLIST * l, CMD * cmd ) in cmdlist_append_cmd() argument
34 result->impl.cmd = cmd; in cmdlist_append_cmd()
63 CMD * cmd = (CMD *)BJAM_MALLOC( sizeof( CMD ) ); in cmd_new() local
66 assert( cmd ); in cmd_new()
67 cmd->rule = rule; in cmd_new()
68 cmd->shell = shell; in cmd_new()
69 cmd->next = 0; in cmd_new()
70 cmd->noop = 0; in cmd_new()
71 cmd->asynccnt = 1; in cmd_new()
72 cmd->status = 0; in cmd_new()
73 cmd->lock = NULL; in cmd_new()
74 cmd->unlock = NULL; in cmd_new()
76 lol_init( &cmd->args ); in cmd_new()
77 lol_add( &cmd->args, targets ); in cmd_new()
78 lol_add( &cmd->args, sources ); in cmd_new()
79 string_new( cmd->buf ); in cmd_new()
87 cmd->buf ); in cmd_new()
90 return cmd; in cmd_new()
98 void cmd_free( CMD * cmd ) in cmd_free() argument
100 cmdlist_free( cmd->next ); in cmd_free()
101 lol_free( &cmd->args ); in cmd_free()
102 list_free( cmd->shell ); in cmd_free()
103 string_free( cmd->buf ); in cmd_free()
104 freetargets( cmd->unlock ); in cmd_free()
105 BJAM_FREE( (void *)cmd ); in cmd_free()
117 void cmd_release_targets_and_shell( CMD * cmd ) in cmd_release_targets_and_shell() argument
119 cmd->args.list[ 0 ] = L0; /* targets */ in cmd_release_targets_and_shell()
120 cmd->shell = L0; /* shell */ in cmd_release_targets_and_shell()