Source-Changes-HG archive

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

[src/trunk]: src/sys/rump/librump Actually, adjust previous a bit: instead of...



details:   https://anonhg.NetBSD.org/src/rev/51aa8cd5c7aa
branches:  trunk
changeset: 748129:51aa8cd5c7aa
user:      pooka <pooka%NetBSD.org@localhost>
date:      Wed Oct 14 18:14:48 2009 +0000

description:
Actually, adjust previous a bit: instead of preserving the names
of the external interfaces and namespacing the internal ones to
"rumppriv", put the external ones in a "rump_pub" namespace.  While
this requires adjusting all of the external callers of these
interfaces, it is the right thing to do in the long run, since it
clarifies the structure.

diffstat:

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

diffs (60 lines):

diff -r 2dc480e4eb29 -r 51aa8cd5c7aa sys/rump/librump/makerumpif.sh
--- a/sys/rump/librump/makerumpif.sh    Wed Oct 14 17:44:25 2009 +0000
+++ b/sys/rump/librump/makerumpif.sh    Wed Oct 14 18:14:48 2009 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-#      $NetBSD: makerumpif.sh,v 1.2 2009/10/14 17:26:09 pooka Exp $
+#      $NetBSD: makerumpif.sh,v 1.3 2009/10/14 18:14:48 pooka Exp $
 #
 # Copyright (c) 2009 Antti Kantee.  All rights reserved.
 #
@@ -67,9 +67,9 @@
 ' ${1} | awk -F\| -v rumptop=${RUMPTOP} '
 function fileheaders(file, srcstr)
 {
-       printf("/*\t$NetBSD: makerumpif.sh,v 1.2 2009/10/14 17:26:09 pooka Exp $\t*/\n\n") > file
+       printf("/*\t$NetBSD: makerumpif.sh,v 1.3 2009/10/14 18:14:48 pooka Exp $\t*/\n\n") > file
        printf("/*\n * Automatically generated.  DO NOT EDIT.\n") > file
-       genstr = "$NetBSD: makerumpif.sh,v 1.2 2009/10/14 17:26:09 pooka Exp $"
+       genstr = "$NetBSD: makerumpif.sh,v 1.3 2009/10/14 18:14:48 pooka Exp $"
        gsub("\\$", "", genstr)
        printf(" * from: %s\n", srcstr) > file
        printf(" * by:   %s\n", genstr) > file
@@ -154,8 +154,8 @@
        funargs = $3
        sub("[ \t]*$", "", funargs)
 
-       printf("%s rump_%s(%s);\n", funtype, funname, funargs) > pubhdr
-       printf("%s rumppriv_%s(%s);\n", funtype, funname, funargs) > privhdr
+       printf("%s rump_pub_%s(%s);\n", funtype, funname, funargs) > pubhdr
+       printf("%s rump_%s(%s);\n", funtype, funname, funargs) > privhdr
 
        if (funtype == "void")
                voidret = 1
@@ -166,7 +166,7 @@
        else
                voidarg = 0
 
-       printf("\n%s\nrump_%s(", funtype, funname) > gencalls
+       printf("\n%s\nrump_pub_%s(", funtype, funname) > gencalls
        if (!voidarg) {
                narg = split(funargs, argv, ",")
                for (i = 1; i <= narg; i++) {
@@ -190,7 +190,7 @@
        printf("\n\t") > gencalls
        if (!voidret)
                printf("rv = ") > gencalls
-       printf("rumppriv_%s(", funname) > gencalls
+       printf("rump_%s(", funname) > gencalls
        for (i = 1; i <= narg; i++) {
                printf("arg%i", i) > gencalls
                if (i < narg)
@@ -201,6 +201,6 @@
                printf("\n\treturn rv;\n") > gencalls
        printf("}\n") > gencalls
        if (isweak)
-               printf("__weak_alias(rumppriv_%s,rump_%s_unavailable);\n", \
+               printf("__weak_alias(rump_%s,rump_%s_unavailable);\n", \
                    funname, myname) > gencalls
 }'



Home | Main Index | Thread Index | Old Index