Source-Changes-HG archive

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

[src/trunk]: src/sys/rump/librump/rumpkern Allow multiple RUMP_COMPONENT() in...



details:   https://anonhg.NetBSD.org/src/rev/5e3c2bff15eb
branches:  trunk
changeset: 760612:5e3c2bff15eb
user:      pooka <pooka%NetBSD.org@localhost>
date:      Sun Jan 09 12:20:10 2011 +0000

description:
Allow multiple RUMP_COMPONENT() in one file.

diffstat:

 sys/rump/librump/rumpkern/rump_private.h |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (28 lines):

diff -r f4502d00dd86 -r 5e3c2bff15eb sys/rump/librump/rumpkern/rump_private.h
--- a/sys/rump/librump/rumpkern/rump_private.h  Sun Jan 09 10:28:46 2011 +0000
+++ b/sys/rump/librump/rumpkern/rump_private.h  Sun Jan 09 12:20:10 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rump_private.h,v 1.66 2011/01/07 15:10:22 pooka Exp $  */
+/*     $NetBSD: rump_private.h,v 1.67 2011/01/09 12:20:10 pooka Exp $  */
 
 /*
  * Copyright (c) 2007 Antti Kantee.  All Rights Reserved.
@@ -66,13 +66,13 @@
        void (*rc_init)(void);
 };
 #define RUMP_COMPONENT(type)                           \
-static void rumpcompinit(void);                                \
-static const struct rump_component rumpcomp = {                \
+static void rumpcompinit##type(void);                  \
+static const struct rump_component rumpcomp##type = {  \
        .rc_type = type,                                \
-       .rc_init = rumpcompinit,                        \
+       .rc_init = rumpcompinit##type,                  \
 };                                                     \
-__link_set_add_rodata(rump_components, rumpcomp);      \
-static void rumpcompinit(void)
+__link_set_add_rodata(rump_components, rumpcomp##type);        \
+static void rumpcompinit##type(void)
 
 #define FLAWLESSCALL(call)                                             \
 do {                                                                   \



Home | Main Index | Thread Index | Old Index