Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern support a variant of the "member" keyword where the...
details: https://anonhg.NetBSD.org/src/rev/7b7e414e44d7
branches: trunk
changeset: 539470:7b7e414e44d7
user: chs <chs%NetBSD.org@localhost>
date: Sun Nov 17 19:24:50 2002 +0000
description:
support a variant of the "member" keyword where the symbol defined
is different from the actual member name.
diffstat:
sys/kern/genassym.sh | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 66c75ac6d028 -r 7b7e414e44d7 sys/kern/genassym.sh
--- a/sys/kern/genassym.sh Sun Nov 17 18:39:48 2002 +0000
+++ b/sys/kern/genassym.sh Sun Nov 17 19:24:50 2002 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: genassym.sh,v 1.11 2001/09/24 00:20:11 sommerfeld Exp $
+# $NetBSD: genassym.sh,v 1.12 2002/11/17 19:24:50 chs Exp $
#
# Copyright (c) 1997 Matthias Pfaller.
@@ -107,7 +107,10 @@
}
/^member[ \t]/ {
- $0 = "define " $2 " offsetof(struct " structname ", " $2 ")";
+ if (NF > 2)
+ $0 = "define " $2 " offsetof(struct " structname ", " $3 ")";
+ else
+ $0 = "define " $2 " offsetof(struct " structname ", " $2 ")";
# fall through
}
Home |
Main Index |
Thread Index |
Old Index