Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/rump/librump create multi-inclusion protectors; some com...
details: https://anonhg.NetBSD.org/src/rev/8746ef33c08e
branches: trunk
changeset: 328948:8746ef33c08e
user: pooka <pooka%NetBSD.org@localhost>
date: Fri Apr 25 17:50:01 2014 +0000
description:
create multi-inclusion protectors; some compilers don't like duplicate typedefs
diffstat:
sys/rump/librump/makerumpif.sh | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
diffs (42 lines):
diff -r 1926a3afca7b -r 8746ef33c08e sys/rump/librump/makerumpif.sh
--- a/sys/rump/librump/makerumpif.sh Fri Apr 25 15:54:12 2014 +0000
+++ b/sys/rump/librump/makerumpif.sh Fri Apr 25 17:50:01 2014 +0000
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: makerumpif.sh,v 1.7 2014/04/25 13:07:31 pooka Exp $
+# $NetBSD: makerumpif.sh,v 1.8 2014/04/25 17:50:01 pooka Exp $
#
# Copyright (c) 2009 Antti Kantee. All rights reserved.
#
@@ -78,9 +78,9 @@
' ${1} | awk -F\| -v topdir=${TOPDIR} '
function fileheaders(file, srcstr)
{
- printf("/*\t$NetBSD: makerumpif.sh,v 1.7 2014/04/25 13:07:31 pooka Exp $\t*/\n\n") > file
+ printf("/*\t$NetBSD: makerumpif.sh,v 1.8 2014/04/25 17:50:01 pooka Exp $\t*/\n\n") > file
printf("/*\n * Automatically generated. DO NOT EDIT.\n") > file
- genstr = "$NetBSD: makerumpif.sh,v 1.7 2014/04/25 13:07:31 pooka Exp $"
+ genstr = "$NetBSD: makerumpif.sh,v 1.8 2014/04/25 17:50:01 pooka Exp $"
gsub("\\$", "", genstr)
printf(" * from: %s\n", srcstr) > file
printf(" * by: %s\n", genstr) > file
@@ -145,6 +145,10 @@
printf("\n") > pubhdr
printf("\n") > privhdr
+ printf("#ifndef _RUMP_PRIF_%s_H_\n", toupper(myname)) > privhdr
+ printf("#define _RUMP_PRIF_%s_H_\n", toupper(myname)) > privhdr
+ printf("\n") > privhdr
+
printf("\n#include <sys/cdefs.h>\n") > gencalls
printf("#include <sys/systm.h>\n") > gencalls
printf("\n#include <rump/rump.h>\n") > gencalls
@@ -217,4 +221,6 @@
if (isweak)
printf("__weak_alias(rump_%s,rump_%s_unavailable);\n", \
funname, myname) > gencalls
-}'
+}
+
+END { printf("\n#endif /* _RUMP_PRIF_%s_H_ */\n", toupper(myname)) > privhdr }'
Home |
Main Index |
Thread Index |
Old Index