diff options
author | Ivo Hinkelmann <ihi@openoffice.org> | 2006-06-29 10:23:21 +0000 |
---|---|---|
committer | Ivo Hinkelmann <ihi@openoffice.org> | 2006-06-29 10:23:21 +0000 |
commit | 467e8ace51d2efc3344ebb6353c6d1c114297633 (patch) | |
tree | e12b1203df0c0056142a03b38a5afa7e1ad4f350 /dmake/dmdump.c | |
parent | ccb5812ddcf34cfd77402de4d2e5929642721718 (diff) |
INTEGRATION: CWS dmake45 (1.2.2); FILE MERGED
2006/05/10 17:46:56 vq 1.2.2.1: #i48087# Correct parsing of target definitions with multiple % targets and
prerequisites. Also add some comments.
Diffstat (limited to 'dmake/dmdump.c')
-rw-r--r-- | dmake/dmdump.c | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/dmake/dmdump.c b/dmake/dmdump.c index 565ed20d40bb..4e2b93dbc7cc 100644 --- a/dmake/dmdump.c +++ b/dmake/dmdump.c @@ -1,4 +1,4 @@ -/* RCS $Id: dmdump.c,v 1.2 2006-04-20 11:59:37 hr Exp $ +/* RCS $Id: dmdump.c,v 1.3 2006-06-29 11:23:21 ihi Exp $ -- -- SYNOPSIS -- Dump the internal dag to stdout. @@ -137,10 +137,23 @@ int flag; } if( cp->ce_flag & F_MULTI ) { + /* recursively print multi or %-targets. */ int tflag = cp->ce_prq->cl_prq->ce_flag; if( !(cp->ce_flag & F_PERCENT) ) tflag |= F_MULTI; dump_conditionals(cp, cp->ce_cond, TRUE, TRUE); putchar('\n'); + +#ifdef DBUG + /* Output also master targtet. (Only in debug builds) */ + printf("Master name(s) (DBUG build): "); + dump_name(cp, FALSE, TRUE ); + putchar('\n'); +#endif + + /* %-targets set namecp (3rd parameter) to NULL so that the next + * recursive dump_normal_target() prints the name of cp->ce_prq->cl_prq + * instead of cp. This should be the same unless CeMeToo(cp) points + * to a cell that is the head of an .UPDATEALL list. */ dump_prerequisites(cp->ce_prq,(cp->ce_flag&F_PERCENT)?NIL(CELL):cp, FALSE, TRUE, tflag); } @@ -220,8 +233,8 @@ int flag; static void dump_prerequisites( lp, namecp, quote, recurse, flag )/* ======================================================== - Dump as prerequisites if recurse is FALSE or as targets - if recurse is TRUE. (For F_MULTI targets.) */ + Dump as prerequisites if recurse is FALSE or as targets + if recurse is TRUE. (For F_MULTI/F_PERCENT targets.) */ LINKPTR lp; CELLPTR namecp; int quote; @@ -239,7 +252,9 @@ int flag; static void dump_name( cp, quote, all )/* ============================= - print out a name */ + Prints out the first or all (if all is TRUE) names of an lcell list. + If quote is true enclose in ' quotes, if quote + is FALSE and the name includes a space enclose in " quotes. */ CELLPTR cp; int quote; int all; |