/* * Copyright 1994 Christopher Seiwald. * * This file is part of Jam - see jam.c for Copyright information. */ /* * command.h - the CMD structure and routines to manipulate them * * Both ACTION and CMD contain a rule, targets, and sources. An * ACTION describes a rule to be applied to the given targets and * sources; a CMD is what actually gets executed by the shell. The * differences are due to: * * ACTIONS must be combined if 'actions together' is given. * ACTIONS must be split if 'actions piecemeal' is given. * ACTIONS must have current sources omitted for 'actions updated'. * * The CMD datatype holds a single command that is to be executed * against a target, and they can chain together to represent the * full collection of commands used to update a target. * * Structures: * * CMD - an action, ready to be formatted into a buffer and executed * * External routines: * * cmd_new() - return a new CMD or 0 if too many args * cmd_free() - delete CMD and its parts * cmd_next() - walk the CMD chain */ #ifdef OPT_RESPONSE_FILES #include "tmpfile.h" typedef struct _tmplist TMPLIST; struct _tmplist { TMPLIST *next; TMPFILE *file; } ; #endif /* * CMD - an action, ready to be formatted into a buffer and executed */ typedef struct _cmd CMD; struct _cmd { CMD *next; CMD *tail; /* valid on in head */ RULE *rule; /* rule->actions contains shell script */ LIST *shell; /* $(SHELL) value */ LOL args; /* LISTs for $(<), $(>) */ #ifdef OPT_RESPONSE_FILES TMPLIST *response_files; #endif #ifdef OPT_PIECEMEAL_PUNT_EXT char buf[ CMDBUF ]; /* actual commands */ #else char buf[ MAXLINE ]; /* actual commands */ #endif } ; CMD *cmd_new( RULE *rule, /* rule (referenced) */ LIST *targets, /* $(<) (freed) */ LIST *sources, /* $(>) (freed) */ LIST *shell, /* $(SHELL) (freed) */ int maxline ); /* max line length */ void cmd_free( CMD *cmd ); # define cmd_next( c ) ((c)->next)
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#7 | 3972 | Matt Armstrong |
bootstrap integrations from //guest/matt_armstrong/jam/fix/2/... (no code change) |
||
#6 | 3969 | Matt Armstrong |
Integrate from //guest/matt_armstrong/jam/fix/2/...@3963 -- no real changes. |
||
#5 | 3950 | Matt Armstrong |
Integrate from //guest/matt_armstrong/jam/fix/1/... thru change 3948 and make no changes. |
||
#4 | 3311 | Matt Armstrong | Update from mainline. | ||
#3 | 2822 | Matt Armstrong | Initial implementation of response files. | ||
#2 | 2817 | Matt Armstrong | Update with current known working version. | ||
#1 | 1270 | Matt Armstrong | In prep for publishing all my patches to jam. | ||
//guest/perforce_software/jam/src/command.h | |||||
#2 | 486 | Perforce staff |
Jam 2.3. See RELNOTES for a list of changes from 2.2.x. Just about every source file was touched when jam got ANSI-fied. |
||
#1 | 2 | laura | Add Jam/MR 2.2 source |