Source-Changes-HG archive

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

[src/trunk]: src/common/lib/libc/stdlib comment out 0{b,B} handling.



details:   https://anonhg.NetBSD.org/src/rev/8f3346964697
branches:  trunk
changeset: 341610:8f3346964697
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Nov 13 16:02:07 2015 +0000

description:
comment out 0{b,B} handling.

diffstat:

 common/lib/libc/stdlib/_strtol.h  |  4 +++-
 common/lib/libc/stdlib/_strtoul.h |  4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diffs (46 lines):

diff -r a2d9c965d190 -r 8f3346964697 common/lib/libc/stdlib/_strtol.h
--- a/common/lib/libc/stdlib/_strtol.h  Fri Nov 13 16:00:32 2015 +0000
+++ b/common/lib/libc/stdlib/_strtol.h  Fri Nov 13 16:02:07 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: _strtol.h,v 1.9 2015/11/12 17:31:43 christos Exp $ */
+/* $NetBSD: _strtol.h,v 1.10 2015/11/13 16:02:07 christos Exp $ */
 
 /*-
  * Copyright (c) 1990, 1993
@@ -105,11 +105,13 @@
                c = s[1];
                s += 2;
                base = 16;
+#if 0
        } else if ((base == 0 || base == 2) &&
            c == '0' && (*s == 'b' || *s == 'B')) {
                c = s[1];
                s += 2;
                base = 2;
+#endif
        } else if (base == 0)
                base = (c == '0' ? 8 : 10);
 
diff -r a2d9c965d190 -r 8f3346964697 common/lib/libc/stdlib/_strtoul.h
--- a/common/lib/libc/stdlib/_strtoul.h Fri Nov 13 16:00:32 2015 +0000
+++ b/common/lib/libc/stdlib/_strtoul.h Fri Nov 13 16:02:07 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: _strtoul.h,v 1.8 2015/11/12 17:23:51 christos Exp $ */
+/* $NetBSD: _strtoul.h,v 1.9 2015/11/13 16:02:07 christos Exp $ */
 
 /*-
  * Copyright (c) 1990, 1993
@@ -102,11 +102,13 @@
                c = s[1];
                s += 2;
                base = 16;
+#if 0
        } else if ((base == 0 || base == 2) &&
            c == '0' && (*s == 'b' || *s == 'B')) {
                c = s[1];
                s += 2;
                base = 2;
+#endif
        } else if (base == 0)
                base = (c == '0' ? 8 : 10);
 



Home | Main Index | Thread Index | Old Index