Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern properly handle forward declarations for pointerpoi...
details: https://anonhg.NetBSD.org/src/rev/dcacf4fe2687
branches: trunk
changeset: 328612:dcacf4fe2687
user: pooka <pooka%NetBSD.org@localhost>
date: Wed Apr 09 23:50:45 2014 +0000
description:
properly handle forward declarations for pointerpointer arguments
diffstat:
sys/kern/makesyscalls.sh | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diffs (26 lines):
diff -r 2e2a67c03e4d -r dcacf4fe2687 sys/kern/makesyscalls.sh
--- a/sys/kern/makesyscalls.sh Wed Apr 09 23:49:27 2014 +0000
+++ b/sys/kern/makesyscalls.sh Wed Apr 09 23:50:45 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: makesyscalls.sh,v 1.139 2013/12/09 21:12:45 pooka Exp $
+# $NetBSD: makesyscalls.sh,v 1.140 2014/04/09 23:50:45 pooka Exp $
#
# Copyright (c) 1994, 1996, 2000 Christopher G. Demetriou
# All rights reserved.
@@ -637,11 +637,12 @@
for (i = 1; i <= varargc; i++) {
type=uncompattype(argtype[i])
sub("const ", "", type)
- if (!typeseen[type] && \
+ ntype=type
+ sub(" *\\*.*", "", ntype);
+ if (!typeseen[ntype] && \
match(type, "struct") && match(type, "\\*")) {
- typeseen[type] = 1
- sub(" *\\*", "", type);
- printf("%s;\n", type) > rumptypes
+ typeseen[ntype] = 1
+ printf("%s;\n", ntype) > rumptypes
}
}
}
Home |
Main Index |
Thread Index |
Old Index