Source-Changes-HG archive

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

[src/trunk]: src/sys/external/bsd/gnu-efi/dist Remove FloatToString from NetB...



details:   https://anonhg.NetBSD.org/src/rev/87d3c526887a
branches:  trunk
changeset: 365521:87d3c526887a
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sun Aug 19 14:50:24 2018 +0000

description:
Remove FloatToString from NetBSD build since it uses float/double

diffstat:

 sys/external/bsd/gnu-efi/dist/inc/efilib.h |  4 +++-
 sys/external/bsd/gnu-efi/dist/lib/print.c  |  6 +++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diffs (65 lines):

diff -r f7146ab571df -r 87d3c526887a sys/external/bsd/gnu-efi/dist/inc/efilib.h
--- a/sys/external/bsd/gnu-efi/dist/inc/efilib.h        Sun Aug 19 11:16:13 2018 +0000
+++ b/sys/external/bsd/gnu-efi/dist/inc/efilib.h        Sun Aug 19 14:50:24 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: efilib.h,v 1.1.1.2 2018/08/16 18:17:47 jmcneill Exp $  */
+/*     $NetBSD: efilib.h,v 1.2 2018/08/19 14:50:24 jmcneill Exp $      */
 
 #ifndef _EFILIB_INCLUDE_
 #define _EFILIB_INCLUDE_
@@ -597,12 +597,14 @@
     IN INT64    v
     );
 
+#ifndef __NetBSD__
 VOID
 FloatToString (
     IN CHAR16   *Buffer,
     IN BOOLEAN  Comma,
     IN double    v
     );
+#endif
 
 VOID
 TimeToString (
diff -r f7146ab571df -r 87d3c526887a sys/external/bsd/gnu-efi/dist/lib/print.c
--- a/sys/external/bsd/gnu-efi/dist/lib/print.c Sun Aug 19 11:16:13 2018 +0000
+++ b/sys/external/bsd/gnu-efi/dist/lib/print.c Sun Aug 19 14:50:24 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: print.c,v 1.1.1.2 2018/08/16 18:17:47 jmcneill Exp $   */
+/*     $NetBSD: print.c,v 1.2 2018/08/19 14:50:24 jmcneill Exp $       */
 
 /*++
 
@@ -1182,6 +1182,7 @@
                 break;
             }
 
+#ifndef __NetBSD__
             case 'f':
                 FloatToString (
                     Item.Scratch,
@@ -1190,6 +1191,7 @@
                     );
                 Item.Item.pw = Item.Scratch;
                 break;
+#endif
 
             case 't':
                 TimeToString (Item.Scratch, va_arg(ps->args, EFI_TIME *));
@@ -1335,6 +1337,7 @@
     *p2 = 0;
 }
 
+#ifndef __NetBSD__
 VOID
 FloatToString (
     IN CHAR16   *Buffer,
@@ -1387,6 +1390,7 @@
     ValueToString(Buffer + x, FALSE, (INTN)f);
     return;
 }
+#endif
 
 VOID
 TimeToString (



Home | Main Index | Thread Index | Old Index