[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-gnulib] patches to progreloc setenv stpncpy strdup strtod strtoimax
From: |
Paul Eggert |
Subject: |
[Bug-gnulib] patches to progreloc setenv stpncpy strdup strtod strtoimax strtol etc. |
Date: |
12 Sep 2003 11:28:25 -0700 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 |
Bruno Haible <address@hidden> writes:
> OK, fine with me.
OK, I installed that part of the changes. Here are the changelog
entries.
2003-09-12 Paul Eggert <address@hidden>
* progreloc.c (get_full_program_name): Define via prototype.
* setenv.c (clearenv): Likewise.
* stpncpy.c: Do not include <string.h> or <sys/types.h>; not
needed.
* strdup.c: Include <stdlib.h>, <string.h> unconditionally.
(malloc, memcpy): Remove decls.
* strtod.c: Include <float.h>, <stdlib.h>, <string.h>
unconditionally.
(DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
* strtoimax.c: Include <stdlib.h> unconditionally.
(strtoul, strtol): Remove decls.
* strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
LONG_MAX): Remove.
Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
(LOCALE_PARAM_DECL): Assume prototypes, not K&R. All uses changed.
(INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
(INTERNAL (strtol), strtol): Define with a prototype.
(PARAMS): Remove. All uses removed.
* tempname.c: Include <string.h> unconditionally.
* userspec.c: Include <stdlib.h>, <string.h> unconditionally.
* xgethostname.c (main): Define with a prototype.
* xmalloc.c: Include "xalloc.h" first, to check interface.
Include <stdlib.h> unconditionally.
(calloc, malloc, realloc, free): Remove decls.
* xstrtod.c: Include "xstrtod.h" first, to check interface.
Include <stdlib.h> unconditionally. Sort include file names.
(strtod): Remove.
(xstrtod): Define with a prototype.
* xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
(strtol, strtoul): Remove decls.
* mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C headers.
* strdup.m4 (gl_PREREQ_STRDUP): Likewise.
* userspec.m4 (gl_USERSPEC): Likewise.
* xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
* xstrtod.m4 (gl_XSTRTOD): Likewise.
* xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
* strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
* strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h, strtol.
* strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
* userspec.m4 (gl_USERSPEC): Do not check for string.h.
* xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
strtoul.