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 fix sequence point violations
details: https://anonhg.NetBSD.org/src/rev/d066f2c1943e
branches: trunk
changeset: 790642:d066f2c1943e
user: christos <christos%NetBSD.org@localhost>
date: Fri Oct 18 20:46:09 2013 +0000
description:
fix sequence point violations
diffstat:
usr.bin/xlint/lint1/scan.l | 19 ++++++++++++-------
1 files changed, 12 insertions(+), 7 deletions(-)
diffs (69 lines):
diff -r 6c80abc59e74 -r d066f2c1943e usr.bin/xlint/lint1/scan.l
--- a/usr.bin/xlint/lint1/scan.l Fri Oct 18 20:43:45 2013 +0000
+++ b/usr.bin/xlint/lint1/scan.l Fri Oct 18 20:46:09 2013 +0000
@@ -1,5 +1,5 @@
%{
-/* $NetBSD: scan.l,v 1.52 2013/04/19 18:51:14 christos Exp $ */
+/* $NetBSD: scan.l,v 1.53 2013/10/18 20:46:09 christos Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved.
@@ -35,7 +35,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: scan.l,v 1.52 2013/04/19 18:51:14 christos Exp $");
+__RCSID("$NetBSD: scan.l,v 1.53 2013/10/18 20:46:09 christos Exp $");
#endif
#include <stdlib.h>
@@ -318,7 +318,8 @@
h = hash(sym->s_name);
if ((sym->s_link = symtab[h]) != NULL)
symtab[h]->s_rlink = &sym->s_link;
- (symtab[h] = sym)->s_rlink = &symtab[h];
+ sym->s_rlink = &symtab[h];
+ symtab[h] = sym;
}
/* initialize bit-masks for quads */
@@ -1391,7 +1392,8 @@
if ((sym->s_link = symtab[sb->sb_hash]) != NULL)
symtab[sb->sb_hash]->s_rlink = &sym->s_link;
- (symtab[sb->sb_hash] = sym)->s_rlink = &symtab[sb->sb_hash];
+ sym->s_rlink = &symtab[sb->sb_hash];
+ symtab[sb->sb_hash] = sym;
*di->d_ldlsym = sym;
di->d_ldlsym = &sym->s_dlnxt;
@@ -1425,7 +1427,8 @@
if ((sym->s_link = symtab[h]) != NULL)
symtab[h]->s_rlink = &sym->s_link;
- (symtab[h] = sym)->s_rlink = &symtab[h];
+ sym->s_rlink = &symtab[h];
+ symtab[h] = sym;
*dcs->d_ldlsym = sym;
dcs->d_ldlsym = &sym->s_dlnxt;
@@ -1478,7 +1481,8 @@
h = hash(sym->s_name);
if ((sym->s_link = symtab[h]) != NULL)
symtab[h]->s_rlink = &sym->s_link;
- (symtab[h] = sym)->s_rlink = &symtab[h];
+ sym->s_rlink = &symtab[h];
+ symtab[h] = sym;
sym->s_blklev = bl;
if (sym->s_link != NULL && sym->s_blklev < sym->s_link->s_blklev)
LERROR("inssym()");
@@ -1530,7 +1534,8 @@
if ((nsym->s_link = symtab[h]) != NULL)
symtab[h]->s_rlink = &nsym->s_link;
- (symtab[h] = nsym)->s_rlink = &symtab[h];
+ nsym->s_rlink = &symtab[h];
+ symtab[h] = nsym;
*dcs->d_ldlsym = nsym;
dcs->d_ldlsym = &nsym->s_dlnxt;
Home |
Main Index |
Thread Index |
Old Index