Module Name:    src
Committed By:   pooka
Date:           Fri Apr 25 13:07:31 UTC 2014

Modified Files:
        src/sys/rump/librump: makerumpif.sh

Log Message:
Automatogically create a function pointer type for each interface.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/rump/librump/makerumpif.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/rump/librump/makerumpif.sh
diff -u src/sys/rump/librump/makerumpif.sh:1.6 src/sys/rump/librump/makerumpif.sh:1.7
--- src/sys/rump/librump/makerumpif.sh:1.6	Thu Feb 14 10:54:54 2013
+++ src/sys/rump/librump/makerumpif.sh	Fri Apr 25 13:07:31 2014
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-#	$NetBSD: makerumpif.sh,v 1.6 2013/02/14 10:54:54 pooka Exp $
+#	$NetBSD: makerumpif.sh,v 1.7 2014/04/25 13:07:31 pooka Exp $
 #
 # Copyright (c) 2009 Antti Kantee.  All rights reserved.
 #
@@ -78,9 +78,9 @@ sed -e '
 ' ${1} | awk -F\| -v topdir=${TOPDIR} '
 function fileheaders(file, srcstr)
 {
-	printf("/*\t$NetBSD: makerumpif.sh,v 1.6 2013/02/14 10:54:54 pooka Exp $\t*/\n\n") > file
+	printf("/*\t$NetBSD: makerumpif.sh,v 1.7 2014/04/25 13:07:31 pooka Exp $\t*/\n\n") > file
 	printf("/*\n * Automatically generated.  DO NOT EDIT.\n") > file
-	genstr = "$NetBSD: makerumpif.sh,v 1.6 2013/02/14 10:54:54 pooka Exp $"
+	genstr = "$NetBSD: makerumpif.sh,v 1.7 2014/04/25 13:07:31 pooka Exp $"
 	gsub("\\$", "", genstr)
 	printf(" * from: %s\n", srcstr) > file
 	printf(" * by:   %s\n", genstr) > file
@@ -168,6 +168,8 @@ $1 == "WRAPPERS"{gencalls = topdir "/" $
 
 	printf("%s rump_pub_%s(%s);\n", funtype, funname, funargs) > pubhdr
 	printf("%s rump_%s(%s);\n", funtype, funname, funargs) > privhdr
+	printf("typedef %s (*rump_%s_fn)(%s);\n",	\
+	    funtype, funname, funargs) > privhdr
 
 	if (funtype == "void")
 		voidret = 1

Reply via email to