Jim Meyering
a6d7c63bf8
*** empty log message ***
2003-09-11 09:09:02 +00:00
Jim Meyering
fa751c2b25
Include <stdlib.h>, <string.h> unconditionally.
...
(free): Remove decl.
2003-09-11 09:08:29 +00:00
Jim Meyering
4e150ea968
Include <stdlib.h> unconditionally.
2003-09-11 09:07:35 +00:00
Jim Meyering
e60a0548b7
Include <stdlib.h> unconditionally.
2003-09-11 09:06:50 +00:00
Jim Meyering
03dd48e562
Include <stdlib.h>, <string.h> unconditionally.
...
(free): Remove decl.
2003-09-11 09:06:31 +00:00
Jim Meyering
e1ba7e7e94
(_RE_ARGS): Remove. All uses removed.
2003-09-11 09:06:19 +00:00
Jim Meyering
2917b8fbad
(PARAMS): Remove. All uses removed.
...
All uses of _RE_ARGS removed, too.
Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
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.
2003-09-11 09:06:10 +00:00
Jim Meyering
adc224e5b1
.
2003-09-10 09:35:07 +00:00
Jim Meyering
35fa8e6ddc
Include <sys/types.h>, so that this file is self-contained.
2003-09-10 09:32:52 +00:00
Jim Meyering
17019d2056
Include readtokens.h first, to test interface.
...
Include <stdlib.h>, <string.h> unconditionally.
(init_tokenbuffer): Define with a prototype.
2003-09-10 09:08:01 +00:00
Jim Meyering
548b033dd6
(malloc): Returns void *, not char *.
...
Include <string.h> unconditionally.
(strchr, memcpy, NULL): Do not define.
2003-09-10 09:07:43 +00:00
Jim Meyering
c69779b7bc
(getenv): Remove decl.
2003-09-10 09:07:30 +00:00
Jim Meyering
1512acb7e5
Include <stdlib.h>, <string.h> unconditionally.
...
(main): Define with a prototype.
2003-09-10 09:07:17 +00:00
Jim Meyering
8afa24fc2f
(physmem_total, physmem_available, main): Define with prototypes.
2003-09-10 09:07:03 +00:00
Jim Meyering
4c50a3aea2
Include <stdlib.h>, <string.h> unconditionally.
2003-09-10 09:06:51 +00:00
Jim Meyering
165cfed262
(POINTER): Remove. All uses changed to void *.
...
(obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
_obstack_begin, _obstack_begin_1, _obstack_allocated_p)
(defined __STDC__ && __STDC__)]:
Remove nonprototyped code.
Include <stdlib.h> unconditionally.
(_obstack_begin, _obstack_begin_1, _obstack_newchunk,
_obstack_allocated_p, _obstack_free, obstack_free,
_obstack_memory_used, print_and_abort):
Define using prototypes.
(obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
obstack_next_free, obstack_object_size, obstack_room) [0]:
Remove unused, unprototyped code.
2003-09-10 09:06:37 +00:00
Jim Meyering
bae2a5d7f4
(PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
...
Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
(This type really should be intptr_t, but that's a C99ism.)
(_obstack_memcpy): Remove: all uses changed to memcpy.
Include <string.h> unconditionally.
(struct obstack): Assume __STDC__ for types of members
chunkfun, freefun, extra_arg.
(_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
_obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
obstack_begin, obstack_specify_allocation,
obstack_specify_allocation_with_arg, obstack_chunkfun,
obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
Remove unprototyped decls and the macros that use them.
2003-09-10 09:06:23 +00:00
Jim Meyering
77438a47c0
Include <stdlib.h>, <string.h> unconditionally.
...
(free): Remove decl.
2003-09-10 09:05:41 +00:00
Jim Meyering
ec98adbc22
Include <stdlib.h> unconditionally.
...
(malloc): Remove decl.
2003-09-10 09:05:31 +00:00
Jim Meyering
820c8fc670
(STDC_HEADERS): Remove.
...
Include <stdlib.h>, <string.h> unconditionally.
2003-09-10 09:05:16 +00:00
Jim Meyering
76b378fe2a
(rmdir): Define with a prototype.
2003-09-10 09:04:49 +00:00
Jim Meyering
c219e453f5
Include <stdlib.h>, <string.h> unconditionally.
...
Include savedir.h first, to test interface.
2003-09-10 09:03:56 +00:00
Jim Meyering
71827bcf04
Include <stdlib.h>, <string.h> unconditionally.
...
(free): Remove decl.
2003-09-10 09:03:45 +00:00
Jim Meyering
d10831f97b
Include <stddef.h>.
...
Use types required by C89 in prototype.
2003-09-10 09:03:31 +00:00
Jim Meyering
e0a2e262a5
Include <string.h> unconditionally.
2003-09-10 08:56:48 +00:00
Jim Meyering
9d22c710ad
(__ptr_t): Remove; all uses changed to void *.
...
Include <string.h> unconditionally.
Include <limits.h> unconditionally.
(LONG_MAX): Remove.
(__memchr): Define via a prototype.
2003-09-10 08:56:00 +00:00
Jim Meyering
384a314210
(__ptr_t): Remove; all uses changed to void *.
...
Include <string.h> unconditionally.
(__P): Remove, and remove all uses.
(memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
Remove forward decls; no longer needed.
2003-09-10 08:55:48 +00:00
Jim Meyering
b6508927a3
(__ptr_t): Remove; all uses changed to void *.
...
Include <string.h> unconditionally.
Include <limits.h> unconditionally.
Include <stdlib.h> unconditionally.
(LONG_MAX): Remove.
(__memchr): Define via a prototype.
2003-09-10 08:55:39 +00:00
Jim Meyering
606627a9f6
Include "sha.h" first.
...
Include <stdlib.h>, <string.h> unconditionally.
2003-09-10 08:55:24 +00:00
Jim Meyering
b43985e28a
(__P): Remove all uses. (It wasn't defined??)
2003-09-10 08:55:04 +00:00
Jim Meyering
a72a98a7fb
Include "md5.h" first.
...
(md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
md5_buffer, md5_process_bytes, md5_process_block):
Define with prototypes.
2003-09-10 08:54:26 +00:00
Jim Meyering
88be547a30
Include <limits.h> unconditionally.
...
(UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
(__P): Remove; all uses removed.
2003-09-10 08:54:09 +00:00
Jim Meyering
fe6f9d5a66
(rpl_realloc): Likewise. Also, define with a prototype.
2003-09-10 08:53:52 +00:00
Jim Meyering
9ff401ebc9
Include <stdlib.h>, for malloc; don't bother with stddef.h.
...
rpl_malloc returns void *, not char *.
2003-09-10 08:53:42 +00:00
Jim Meyering
e1ddafb2f0
Include <stdlib.h>.
...
(free): Remove decl.
2003-09-10 08:50:00 +00:00
Jim Meyering
0d87ae92fb
Include makepath.h first, to test interface.
...
Include <stdlib.h> and <string.h> unconditionally.
2003-09-10 08:49:49 +00:00
Jim Meyering
06d7d0633c
Include long-options.h first, to test interface.
...
Include <stdlib.h> unconditionally.
2003-09-10 08:49:38 +00:00
Jim Meyering
153a18589c
Include <string.h> unconditionally.
2003-09-10 08:49:26 +00:00
Jim Meyering
890fdbf0c4
Include <stdlib.h>, <string.h> unconditionally.
...
(getenv): Do not declare.
2003-09-10 08:49:12 +00:00
Jim Meyering
9f8cacb16f
(free, malloc): Remove decls.
...
Include <stdlib.h> unconditionally.
2003-09-10 08:48:43 +00:00
Jim Meyering
1561362640
Include hard-locale.h first.
...
Include <stdlib.h>, <string.h> unconditionally.
2003-09-10 08:48:30 +00:00
Jim Meyering
ccddbf4faf
Include group-member.h first.
...
Include <stdlib.h> unconditionally.
2003-09-10 08:47:38 +00:00
Jim Meyering
e705d572fa
Include <string.h> unconditionally.
2003-09-10 08:45:43 +00:00
Jim Meyering
7700fca526
(const): Remove macro.
...
(getopt_long, getopt_long_only, main): Define with prototype.
2003-09-10 08:45:08 +00:00
Jim Meyering
f846451580
(const): Remove macro.
...
Include <string.h> unconditionally.
(my_index): Remove; all uses changed to strchr.
(strlen): Remove decl.
(exchange): Remove forward decl; no longer needed.
(exchange, _getopt_initialize, _getopt_internal, getopt, main):
Define with prototype.
2003-09-10 08:44:46 +00:00
Jim Meyering
9209af4c98
(struct option.name): Assume C89, and use 'const'.
...
(getopt, etopt_long, getopt_long_only, _getopt_internal)
[defined __GNU_LIBRARY__]: Assume C89, so we can always declare
with a prototype.
2003-09-10 08:44:28 +00:00
Jim Meyering
8f4368f10b
(getloadavg, main): Define via prototypes.
2003-09-10 08:44:15 +00:00
Jim Meyering
dfd16eff6d
Assume stdlib.h per the C89 spec.
2003-09-10 08:42:04 +00:00
Jim Meyering
73ec01a112
Include <stddef.h>.
...
(gethostname): Define with prototype. Length is size_t, not int.
2003-09-10 08:37:38 +00:00
Jim Meyering
a8a090ae08
Include <stdlib.h>, <string.h> unconditionally.
2003-09-10 08:37:15 +00:00