X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2FChangeLog;h=188afb76689a23a01a27cd6255d9706fd70ad9cf;hb=dca1eba100e85c0bd42db59fc81dffa3390c7374;hp=32a2b80664ed490374cab53fbb26af1ff61fe6e1;hpb=b258c18a6f1cbb23ab21f55325ddaeccf9005cba;p=gnulib.git diff --git a/lib/ChangeLog b/lib/ChangeLog index 32a2b8066..188afb766 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,187 @@ +2003-09-27 Paul Eggert + + * minmax.h (MIN, MAX) [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]: + Omit the special code that used __typeof__, since we worry that + it could be more trouble than it's worth. See: + http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html + http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html + + * free.c: New file. + +2003-09-26 Jim Meyering + + * error.c (error_tail): Move some declarations + into inner scope where the local variables are used. + +2003-09-26 Bruno Haible + + * stpncpy.h (gnu_stpncpy): New declaration. + (stpncpy): Define as alias for gnu_stpncpy. + * stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy. + +2003-09-26 Paul Eggert + + * error.c (SIZE_MAX) [!defined SIZE_MAX]: Define. + (error_tail): Do not loop, reallocating temporary buffer, since + the output cannot contain more wide characters than the input + contains bytes, the size must be big enough already. This avoids + one potential size overflow calculation. Check for size overflow + when calculating temporary buffer size. Free temporary buffer + when done, if it was allocated with malloc; this plugs a memory + leak. Remove casts from void * to pointers, that are no longer + needed now that we're assuming C89 or better. + + Merge error changes from glibc. + + * error.c, error.h: Update copyright notice header to match glibc. + * error.c [defined _LIBC]: Include , . + (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]: + Disable cancellation while printing error. + * error.h: Prepend __ to parameter names. + +2003-09-25 Karl Berry + + * argp-fmtstream.c, argp-help.c: update from libc. + +2003-09-25 Bruno Haible + + * version-etc-2.h: New file, from version-etc.h with modifications. + * version-etc-2.c: New file, from version-etc.c with modifications. + +2003-09-25 Simon Josefsson + + * xgetdomainname.h: New file. + * xgetdomainname.c: New file. + +2003-09-25 Simon Josefsson + Bruno Haible + + * getdomainname.h: New file. + * getdomainname.c: New file. + +2003-09-24 Paul Eggert + + * linebuffer.c (freebuffer): Don't free the argument, just + the buffer associated with the argument. Bug reported by + Simon Josefsson. + +2003-09-19 Karl Berry + + * argp.h: update from libc. + +2003-09-16 Paul Eggert + + * linebuffer.c (readlinebuffer): Return NULL immediately upon + input error, instead of returning NULL the next time we are called + (and therefore losing track of errno). + +2003-09-15 Paul Eggert + + * getndelim2.c (getndelim2): Don't trash errno when a read + fails, so that the caller gets the proper errno. + + * readutmp.c (read_utmp): Likewise. + Check for fstat error. Close stream and free storage + when failing. + +2003-09-14 Bruno Haible + + * fwriteerror.h: New file. + * fwriteerror.c: New file. + +2003-09-14 Jim Meyering + + * getloadavg.c: Correct cpp indentation. + * strdup.c: Likewise. + * vasnprintf.c: Likewise. + +2003-09-12 Paul Eggert + + * argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h. + * obstack.c [!defined _LIBC]: Likewise. + * argmatch.c (EXIT_FAILURE): Remove; now done by exit.h + * exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise. + * exitfail.c: Don't include stdlib.h; no longer needed. + + More changes to assume C89 or better. + + * error.c (error_tail): Assume vprintf. + + * argmatch.c (getenv): Remove decl. + * progreloc.c (get_full_program_name): Define via prototype. + * setenv.c (clearenv): Likewise. + * stpncpy.c: Do not include or ; not + needed. + * strdup.c: Include , unconditionally. + (malloc, memcpy): Remove decls. + * strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove. + (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove. + Include , , , unconditionally. + (memcpy): Remove macro. + (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally. + (__P): Remove. All uses removed. + (PTR): Remove. All uses changed to void *. + (CHAR_BIT, NULL): Remove. + (spaces, zeros, memset_space, memset_zero) + [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]: + Remove. + (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove. + (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days): + Define with prototype. + Remove now-unnecessary prototype decl. + (extra_args_spec): Assume ANSI C. All uses changed. + (extra_args_spec_iso): Remove. + (my_strftime, emacs_strftimeu): Define via prototype. + * strtod.c: Include , , + unconditionally. + (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls. + * strtoimax.c: Include unconditionally. + (strtoul, strtol): Remove decls. + * strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX, + LONG_MAX): Remove. + Include , , , unconditionally. + (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO. + (LOCALE_PARAM_PROTO): New macro. + (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R. + (INTERNAL (strtol), strtol): Define with a prototype. + (PARAMS): Remove. All uses removed. + * tempname.c: Include unconditionally. + * userspec.c: Include , unconditionally. + * xgethostname.c (main): Define with a prototype. + * xmalloc.c: Include "xalloc.h" first, to check interface. + Include unconditionally. + (calloc, malloc, realloc, free): Remove decls. + * xstrtod.c: Include "xstrtod.h" first, to check interface. + Include unconditionally. Sort include file names. + (strtod): Remove. + (xstrtod): Define with a prototype. + * xstrtol.c: Include , unconditionally. + (strtol, strtoul): Remove decls. + +2003-09-11 Paul Eggert + + * strndup.c: Don't include , . + Include , unconditionally. + Remove now-unnecessary cast to char *. + * strnlen.c: Include unconditionally. + * yesno.c (yesno): Define with a prototype. + +2003-09-10 Bruno Haible + + * strcspn.c: Include unconditionally. + * strpbrk.c: Include unconditionally. + * strstr.c: Include unconditionally. + * unicodeio.c: Include unconditionally. + * setenv.c: Include and unconditionally. + * unsetenv.c: Likewise. + * xreadlink.c: Include unconditionally. + * yesno.c: Include unconditionally. + (rpmatch): Add prototype. + +2003-09-10 Jim Meyering + + * error.c: Correct indentation of cpp directives. + 2003-09-09 Paul Eggert More K&R removal. @@ -132,6 +316,67 @@ * physmem.c (physmem_total, physmem_available, main): Define with prototypes. + * posixtm.c: Include , unconditionally. + (main): Define with a prototype. + + * posixver.c (getenv): Remove decl. + + * putenv.c (malloc): Returns void *, not char *. + Include unconditionally. + (strchr, memcpy, NULL): Do not define. + + * readtokens.c: Include readtokens.h first, to test interface. + Include , unconditionally. + (init_tokenbuffer): Define with a prototype. + + * regex.c (PARAMS): Remove. All uses removed. + All uses of _RE_ARGS removed, too. + Include , , , + unconditionally. + (bzero): Assume memset exists. + (memcmp, memcpy, NULL): Remove. + (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed + char, or assignments to local vars of type signed char. + (init_syntax_once, PREFIX(extract_number_and_incr), + PREFIX(print_partial_compiled_pattern), + PREFIX(print_compiled_pattern), PREFIX(print_double_string), + convert_mbs_to_wcs, print_fastmap, re_set_syntax, + PREFIX(regex_grow_registers), PREFIX(regex_compile), + PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1), + PREFIX(insert_op2), PREFIX(at_begline_loc_p), + PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space, + wcs_compile_range, byte_compile_range, truncate_wchar, + PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers, + re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2, + count_mbs_length, wcs_re_match_2_internal, + byte_re_match_2_internal, PREFIX(group_match_null_string_p), + PREFIX(alt_match_null_string_p), + PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate), + re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror, + regfree, PREFIX(extract_number)): Define with prototype. Remove + now-unnecessary declaration, if any. + (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec, + regcomp, regexec): + Remove now-unnecessary casts among pointer types. + * regex.h (_RE_ARGS): Remove. All uses removed. + + * rename.c: Include , unconditionally. + (free): Remove decl. + + * rpmatch.c: Include unconditionally. + + * same.c: Include , unconditionally. + (free): Remove decl. + + * save-cwd.c: Include unconditionally. + * xgetcwd.c: Likewise. + + * stat.c: Include , unconditionally. + (free): Remove decl. + + * strchrnul.c (strchrnul): Define with a prototype. + Fix bug: c_in was not converted to char before searching. + The following changes are not K&R related: * group-member.h: Include , so that this file is @@ -198,7 +443,7 @@ * exitfail.c: Include unconditionally. - * fnmatch.h (__P): Remove. All uses changed to assume + * fnmatch_.h (__P): Remove. All uses changed to assume prototypes. * fnmatch.c: Include fnmatch.h first, to test interface. Include , , unconditionally.