Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/rump/librump Automatogically create a function pointer t...



details:   https://anonhg.NetBSD.org/src/rev/4ea02e173678
branches:  trunk
changeset: 328938:4ea02e173678
user:      pooka <pooka%NetBSD.org@localhost>
date:      Fri Apr 25 13:07:31 2014 +0000

description:
Automatogically create a function pointer type for each interface.

diffstat:

 sys/rump/librump/makerumpif.sh |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (32 lines):

diff -r 3f03234dd5eb -r 4ea02e173678 sys/rump/librump/makerumpif.sh
--- a/sys/rump/librump/makerumpif.sh    Fri Apr 25 12:20:12 2014 +0000
+++ b/sys/rump/librump/makerumpif.sh    Fri Apr 25 13:07:31 2014 +0000
@@ -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 @@
 ' ${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 @@
 
        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



Home | Main Index | Thread Index | Old Index