projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Include config.h.
[gnulib.git]
/
lib
/
xstrtol.c
diff --git
a/lib/xstrtol.c
b/lib/xstrtol.c
index
a738634
..
0b4a714
100644
(file)
--- a/
lib/xstrtol.c
+++ b/
lib/xstrtol.c
@@
-4,8
+4,6
@@
#ifdef STDC_HEADERS
#include <stdlib.h>
#ifdef STDC_HEADERS
#include <stdlib.h>
-#else
-long int __strtol (const char *, char **, int base);
#endif
#ifdef HAVE_STRING_H
#endif
#ifdef HAVE_STRING_H
@@
-17,8
+15,8
@@
long int __strtol (const char *, char **, int base);
# endif
#endif
# endif
#endif
+#define NDEBUG
#include <assert.h>
#include <assert.h>
-/* FIXME: define NDEBUG before release. */
#include <errno.h>
#ifndef errno
#include <errno.h>
#ifndef errno
@@
-26,15
+24,15
@@
extern int errno;
#endif
#if HAVE_LIMITS_H
#endif
#if HAVE_LIMITS_H
-#include <limits.h>
+#
include <limits.h>
#endif
#ifndef ULONG_MAX
#endif
#ifndef ULONG_MAX
-#define ULONG_MAX ((unsigned long) ~(unsigned long) 0)
+#
define ULONG_MAX ((unsigned long) ~(unsigned long) 0)
#endif
#ifndef LONG_MAX
#endif
#ifndef LONG_MAX
-#define LONG_MAX ((long int) (ULONG_MAX >> 1))
+#
define LONG_MAX ((long int) (ULONG_MAX >> 1))
#endif
#include "xstrtol.h"
#endif
#include "xstrtol.h"
@@
-98,6
+96,7
@@
__xstrtol (s, ptr, base, val, valid_suffixes)
++(*p);
break;
++(*p);
break;
+ case 'B':
case 'k':
BKM_SCALE (tmp, 1024, LONGINT_OVERFLOW);
++(*p);
case 'k':
BKM_SCALE (tmp, 1024, LONGINT_OVERFLOW);
++(*p);