Kaydet (Commit) 956d091a authored tarafından Jens-Heiner Rechtien's avatar Jens-Heiner Rechtien

INTEGRATION: CWS dmake43p01 (1.4.6); FILE MERGED

2005/06/01 02:27:09 vq 1.4.6.3: #i50053# Fix bogus check.
2005/05/31 22:13:38 vq 1.4.6.2: #i50053# Fix typo.
2005/05/30 18:37:36 vq 1.4.6.1: #i50053# Fix dmake correctly parsing empty makefile lines. This was a
regression introduced by issue 44959 and worked before only because
the trailing \n of empty lines were accidentally not removed.
üst 9b219464
/* $RCSfile: parse.c,v $
-- $Revision: 1.4 $
-- last change: $Author: rt $ $Date: 2004-09-08 16:06:58 $
-- $Revision: 1.5 $
-- last change: $Author: hr $ $Date: 2006-04-20 12:01:27 $
--
-- SYNOPSIS
-- Parse the input, and perform semantic analysis
......@@ -107,8 +107,9 @@ FILE *fil;
}
else if( *p == ']' )
Fatal( "Found unmatched ']'" );
else if( (*pTmpBuf && *p) || (Notabs && !*pTmpBuf && !*p))
else if( *pTmpBuf ) /* Something that was no recipe. */
State = NORMAL_SCAN;
/* The only thing that was not handled was an empty line. */
}
if( State == RULE_SCAN ) break; /* ie. keep going */
......@@ -152,8 +153,8 @@ FILE *fil;
if( Parse_macro(pTmpBuf, M_DEFAULT) ) break;/* it's a macro def*/
if( Parse_rule_def( &State ) ) break;/* it's a rule def */
/* if just blank line then ignore it */
if( *DmStrSpn( Buffer, " \t\r\n" ) == '\0' ) break;
/* if it is an empty or blank line then ignore it */
if( !*Buffer || *DmStrSpn( Buffer, " \t\r\n" ) == '\0' ) break;
/* otherwise assume it was a line of unrecognized input, or a
* recipe line out of place so print a message */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment