From 29c488897451515214daa24f23255a966308777a Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 10 Sep 2003 07:13:02 +0000 Subject: [PATCH] Remove K&R cruft, day two. --- config/ChangeLog | 3 ++- lib/ChangeLog | 61 ++++++++++++++++++++++++++++++++++++++++++++++++ m4/ChangeLog | 17 +++++++++++++- 3 files changed, 79 insertions(+), 2 deletions(-) diff --git a/config/ChangeLog b/config/ChangeLog index faff927904..cf58eafaf0 100644 --- a/config/ChangeLog +++ b/config/ChangeLog @@ -1,6 +1,7 @@ 2003-09-09 Paul Eggert - * srclist.txt: Do not get getopt.h or getopt1.c from libc. + * srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from + libc. 2003-09-08 Karl Berry diff --git a/lib/ChangeLog b/lib/ChangeLog index 32a2b80664..761e52c108 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -132,6 +132,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 unsigned char before searching. + The following changes are not K&R related: * group-member.h: Include , so that this file is diff --git a/m4/ChangeLog b/m4/ChangeLog index 6b5e2e70af..70ff21f208 100644 --- a/m4/ChangeLog +++ b/m4/ChangeLog @@ -1,5 +1,6 @@ 2003-09-09 Paul Eggert + * getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h. * getopt.m4 (gl_GETOPT): Don't check for string.h. * getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers or for string.h. @@ -32,8 +33,22 @@ (gl_PREREQ_OBSTACK): Don't check for stdlib.h. * path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C headers, memory.h, stdlib.h, string.h, strings.h. + * posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h. + * posixver.m4 (gl_POSIXVER): Don't check for getenv. + * putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy, + strchr. + * readtokens.m4 (gl_READTOKENS): Don't check for standard C + headers, memory.h, string.h. + * regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h. + * rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h, + free. + * rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C headers. + * same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free. + * save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers. * savedir.m4 (gl_SAVEDIR): Don't check for standard C headers. - + * strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h. + * xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h. + 2003-09-09 Derek Robert Price * getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the -- 2.30.2