Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/common/lib/libc/arch/arm/string use #if defined(xxx) instead...
details: https://anonhg.NetBSD.org/src/rev/bd7b9442958e
branches: trunk
changeset: 783830:bd7b9442958e
user: matt <matt%NetBSD.org@localhost>
date: Thu Jan 10 02:13:49 2013 +0000
description:
use #if defined(xxx) instead of ifdef
diffstat:
common/lib/libc/arch/arm/string/strcpy.S | 4 ++--
common/lib/libc/arch/arm/string/strlcpy.S | 9 +++++++--
common/lib/libc/arch/arm/string/strncpy.S | 9 +++++++--
3 files changed, 16 insertions(+), 6 deletions(-)
diffs (42 lines):
diff -r b4e4f7efe333 -r bd7b9442958e common/lib/libc/arch/arm/string/strcpy.S
--- a/common/lib/libc/arch/arm/string/strcpy.S Thu Jan 10 02:08:22 2013 +0000
+++ b/common/lib/libc/arch/arm/string/strcpy.S Thu Jan 10 02:13:49 2013 +0000
@@ -1,6 +1,6 @@
-/* $NetBSD: strcpy.S,v 1.3 2013/01/08 13:21:05 matt Exp $ */
+/* $NetBSD: strcpy.S,v 1.4 2013/01/10 02:13:49 matt Exp $ */
-#ifdef _STANDALONE
+#if defined(_STANDALONE)
#include "strcpy_naive.S"
#else
#include "strcpy_arm.S"
diff -r b4e4f7efe333 -r bd7b9442958e common/lib/libc/arch/arm/string/strlcpy.S
--- a/common/lib/libc/arch/arm/string/strlcpy.S Thu Jan 10 02:08:22 2013 +0000
+++ b/common/lib/libc/arch/arm/string/strlcpy.S Thu Jan 10 02:13:49 2013 +0000
@@ -1,4 +1,9 @@
-/* $NetBSD: strlcpy.S,v 1.1 2013/01/02 05:54:58 matt Exp $ */
+/* $NetBSD: strlcpy.S,v 1.2 2013/01/10 02:13:49 matt Exp $ */
#define STRLCPY
-#include "strcpy.S"
+
+#if defined(_STANDALONE)
+#include "strcpy_naive.S"
+#else
+#include "strcpy_arm.S"
+#endif
diff -r b4e4f7efe333 -r bd7b9442958e common/lib/libc/arch/arm/string/strncpy.S
--- a/common/lib/libc/arch/arm/string/strncpy.S Thu Jan 10 02:08:22 2013 +0000
+++ b/common/lib/libc/arch/arm/string/strncpy.S Thu Jan 10 02:13:49 2013 +0000
@@ -1,4 +1,9 @@
-/* $NetBSD: strncpy.S,v 1.1 2013/01/02 05:54:58 matt Exp $ */
+/* $NetBSD: strncpy.S,v 1.2 2013/01/10 02:13:49 matt Exp $ */
#define STRNCPY
-#include "strcpy.S"
+
+#if defined(_STANDALONE)
+#include "strcpy_naive.S"
+#else
+#include "strcpy_arm.S"
+#endif
Home |
Main Index |
Thread Index |
Old Index