Mercurial > hg > octave-kai > gnulib-hg
changeset 443:08929473d399
merge with 1.11.1b
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Sun, 21 May 1995 11:44:25 +0000 |
parents | a7b85a203afa |
children | e421a9b5a4b8 |
files | lib/memchr.c lib/memmove.c lib/xstrtol.c |
diffstat | 3 files changed, 10 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/memchr.c +++ b/lib/memchr.c @@ -33,12 +33,8 @@ # 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
--- a/lib/memmove.c +++ b/lib/memmove.c @@ -3,6 +3,10 @@ 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;
--- a/lib/xstrtol.c +++ b/lib/xstrtol.c @@ -2,10 +2,12 @@ #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 @@ -17,8 +19,8 @@ # endif #endif +#define NDEBUG #include <assert.h> -/* FIXME: define NDEBUG before release. */ #include <errno.h> #ifndef errno @@ -37,8 +39,6 @@ #define LONG_MAX ((long int) (ULONG_MAX >> 1)) #endif -#include "xstrtol.h" - #define BKM_SCALE(x, scale_factor, error_return) \ do \ { \