Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys re-use a macro.
details: https://anonhg.NetBSD.org/src/rev/36181a18b470
branches: trunk
changeset: 329185:36181a18b470
user: christos <christos%NetBSD.org@localhost>
date: Tue May 13 19:58:23 2014 +0000
description:
re-use a macro.
diffstat:
sys/sys/cdefs_elf.h | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (27 lines):
diff -r 8d2430aac73d -r 36181a18b470 sys/sys/cdefs_elf.h
--- a/sys/sys/cdefs_elf.h Tue May 13 19:39:40 2014 +0000
+++ b/sys/sys/cdefs_elf.h Tue May 13 19:58:23 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cdefs_elf.h,v 1.43 2013/02/07 18:53:34 gdt Exp $ */
+/* $NetBSD: cdefs_elf.h,v 1.44 2014/05/13 19:58:23 christos Exp $ */
/*
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
@@ -152,13 +152,13 @@
#define __link_set_add_data2(set, sym, n) __link_set_make_entry2(set, sym, n)
#define __link_set_add_bss2(set, sym, n) __link_set_make_entry2(set, sym, n)
-#define __link_set_decl(set, ptype) \
- extern ptype * const __start_link_set_##set[] __dso_hidden; \
- extern ptype * const __stop_link_set_##set[] __dso_hidden
-
#define __link_set_start(set) (__start_link_set_##set)
#define __link_set_end(set) (__stop_link_set_##set)
+#define __link_set_decl(set, ptype) \
+ extern ptype * const __link_set_start(set)[] __dso_hidden; \
+ extern ptype * const __link_set_end(set)[] __dso_hidden
+
#define __link_set_count(set) \
(__link_set_end(set) - __link_set_start(set))
Home |
Main Index |
Thread Index |
Old Index