summaryrefslogtreecommitdiffstats
path: root/dmake/macparse.c
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2006-09-25 08:40:09 +0000
committerVladimir Glazounov <vg@openoffice.org>2006-09-25 08:40:09 +0000
commitdcfd5450f4db49a0f928450c99cc7d5c1dc0178c (patch)
treee9b82c7b742cc0a828e1e77909886a55b82857cd /dmake/macparse.c
parentINTEGRATION: CWS dmake46 (1.1.1.1.152); FILE MERGED (diff)
downloadcore-dcfd5450f4db49a0f928450c99cc7d5c1dc0178c.tar.gz
core-dcfd5450f4db49a0f928450c99cc7d5c1dc0178c.zip
INTEGRATION: CWS dmake46 (1.1.1.1.152); FILE MERGED
2006/07/17 03:10:57 vq 1.1.1.1.152.1: #i67166# Make dmake issue a warning if a previously unset macro (i.e. it is assumed to be empty) is used and later set to a different value.
Diffstat (limited to 'dmake/macparse.c')
-rw-r--r--dmake/macparse.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/dmake/macparse.c b/dmake/macparse.c
index a842b091b6e5..bbc9cd823667 100644
--- a/dmake/macparse.c
+++ b/dmake/macparse.c
@@ -1,4 +1,4 @@
-/* RCS $Id: macparse.c,v 1.1.1.1 2000-09-22 15:33:25 hr Exp $
+/* RCS $Id: macparse.c,v 1.2 2006-09-25 09:40:09 vg Exp $
--
-- SYNOPSIS
-- Parse a macro definition
@@ -95,6 +95,8 @@ int flag;
break;
case M_OP_DF:
+ /* *= */
+ /* internal default macros or initialized empty macros set M_INIT. */
if( (hv = GET_MACRO(tok1)) != NIL(HASH) && !(hv->ht_flag & M_INIT) )
break;
/* else FALLTHRU */
@@ -104,6 +106,8 @@ int flag;
break;
case M_OP_DFCL:
+ /* *:= */
+ /* internal default macros or initialized empty macros set M_INIT. */
if( (hv = GET_MACRO(tok1)) != NIL(HASH) && !(hv->ht_flag & M_INIT) )
break;
/* else FALLTHRU */