summaryrefslogtreecommitdiff
path: root/dmake/parse.c
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2006-06-29 10:24:25 +0000
committerIvo Hinkelmann <ihi@openoffice.org>2006-06-29 10:24:25 +0000
commitbb71d425b5431408e45f8155dbf7f9b4cb6861f3 (patch)
tree3831ea0187e75f9267138a5691129cb77386b15b /dmake/parse.c
parent9a0792107e15060ba09f0ab853079dbec4733589 (diff)
INTEGRATION: CWS dmake45 (1.5.2); FILE MERGED
2006/05/03 21:47:14 vq 1.5.2.1: #i64869# Fix various parsing problems of target definitions and add code comments.
Diffstat (limited to 'dmake/parse.c')
-rw-r--r--dmake/parse.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/dmake/parse.c b/dmake/parse.c
index c71df06a52c2..cf3f44e42867 100644
--- a/dmake/parse.c
+++ b/dmake/parse.c
@@ -1,6 +1,6 @@
/* $RCSfile: parse.c,v $
--- $Revision: 1.5 $
--- last change: $Author: hr $ $Date: 2006-04-20 12:01:27 $
+-- $Revision: 1.6 $
+-- last change: $Author: ihi $ $Date: 2006-06-29 11:24:25 $
--
-- SYNOPSIS
-- Parse the input, and perform semantic analysis
@@ -48,9 +48,12 @@ FILE *fil;
if( fil != NIL( FILE ) ) /* end of parsable input */
Closefile();
- Bind_rules_to_targets( F_DEFAULT );
if( Group ) Fatal( "Incomplete rule recipe group detected" );
+ /* If we are still in RULE_SCAN mode there might be unbound recipes. */
+ if( State == RULE_SCAN )
+ Bind_rules_to_targets( F_DEFAULT );
+
DB_VOID_RETURN;
}
else {
@@ -75,7 +78,7 @@ FILE *fil;
switch( State ) {
case RULE_SCAN:
- /* Check for the `[' that starts off a group rule definition.
+ /* Check for the `[' that starts off a group recipe definition.
* It must appear as the first non-white space
* character in the line. */