Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/xlint/lint1 __real__ and __imag__ produce lvalues



details:   https://anonhg.NetBSD.org/src/rev/38a20c78af2a
branches:  trunk
changeset: 326803:38a20c78af2a
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Feb 18 20:43:36 2014 +0000

description:
__real__ and __imag__ produce lvalues

diffstat:

 usr.bin/xlint/lint1/tree.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 35bd6b2e6c80 -r 38a20c78af2a usr.bin/xlint/lint1/tree.c
--- a/usr.bin/xlint/lint1/tree.c        Tue Feb 18 18:39:10 2014 +0000
+++ b/usr.bin/xlint/lint1/tree.c        Tue Feb 18 20:43:36 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tree.c,v 1.73 2013/04/19 18:51:14 christos Exp $       */
+/*     $NetBSD: tree.c,v 1.74 2014/02/18 20:43:36 christos Exp $       */
 
 /*
  * Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,7 +37,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: tree.c,v 1.73 2013/04/19 18:51:14 christos Exp $");
+__RCSID("$NetBSD: tree.c,v 1.74 2014/02/18 20:43:36 christos Exp $");
 #endif
 
 #include <stdlib.h>
@@ -2332,6 +2332,7 @@
                return NULL;
        }
        ntn = mktnode(op, cn->tn_type, ln, cn);
+       ntn->tn_lvalue = 1;
 
        return (ntn);
 }



Home | Main Index | Thread Index | Old Index