# define __ptr_t char *
#endif /* C++ or ANSI C. */
-#if defined (HAVE_STRING_H) || defined (_LIBC)
-# include <string.h>
-#endif
-
-#if defined (HAVE_LIMIT_H) || defined (_LIBC)
-# include <limit.h>
+#if defined (HAVE_LIMITS_H) || defined (_LIBC)
+# include <limits.h>
#endif
#define LONG_MAX_32_BITS 2147483647
In the public domain.
By David MacKenzie <djm@gnu.ai.mit.edu>. */
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
void
memmove (dest, source, length)
char *dest;
#include <config.h>
#endif
+#include "xstrtol.h" /* Get definition for __P before use. */
+
#ifdef STDC_HEADERS
#include <stdlib.h>
#else
-long int __strtol (const char *, char **, int base);
+__unsigned long int __strtol __P ((const char *, char **, int base));
#endif
#ifdef HAVE_STRING_H
# endif
#endif
+#define NDEBUG
#include <assert.h>
-/* FIXME: define NDEBUG before release. */
#include <errno.h>
#ifndef errno
#define LONG_MAX ((long int) (ULONG_MAX >> 1))
#endif
-#include "xstrtol.h"
-
#define BKM_SCALE(x, scale_factor, error_return) \
do \
{ \
Sat May 20 06:44:14 1995 Jim Meyering (meyering@comco.com)
+ * join.c (ADD_FIELD): Declare in K&R style, not ANSI.
+ From Kaveh Ghazi.
+
+ * xstrtol.c: Define NDEBUG for systems with losing assert.h.
+ (__strtol): Add __unsigned to prototype and use __P.
+ Move inclusion of xstrtol.h to precede prototype.
+ From Kaveh Ghazi.
+
+ * memmove.c: Include config.h for definition of const.
+ From Kaveh Ghazi.
+
* All Makefile.in (install-exec, install-exec): New targets.
From Karl Berry.
static struct line blank2;
static void
-ADD_FIELD (struct line *line, const char *field, size_t len)
+ADD_FIELD (line, field, len)
+ struct line *line;
+ const char *field;
+ size_t len;
{
if (line->nfields >= line->nfields_allocated)
{