]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
* ar.c: Include libiberty.h.
authorIan Lance Taylor <ian@airs.com>
Mon, 22 Aug 1994 21:14:43 +0000 (21:14 +0000)
committerIan Lance Taylor <ian@airs.com>
Mon, 22 Aug 1994 21:14:43 +0000 (21:14 +0000)
commit02354a0f8dfce5990749c09ca5637047e358db49
tree09289e3ff0e3642f3ad7b7d224e6426786a479df
parent886955e7ccdac9250b3637a439aeca3f2e71f8d5
* ar.c: Include libiberty.h.
(inarch): Remove variable.
(map_over_members): Make static.  Add arch argument, and use it
instead of inarch.  Change all callers.
(main): Treat --version as -v.  Accept -t argument.  Accept any
number of archive arguments.  Catch and use open_inarch return
value, rather than using inarch.
(open_inarch): Return newly opened BFD, rather than using inarch.
(do_quick_append): Make archive_filename const.
(write_archive): Add iarch argument, and use it instead of inarch.
Change all callers.
(delete_members, move_members, replace_members): Likewise.
(ranlib_only): Don't exit on success.  Catch and use open_inarch
return value.
(ranlib_touch): New function.
* arsup.h (map_over_members): Don't declare.
(ar_end, ar_extract): Declare.
(open_inarch): Change return value in declaration to bfd *.
* arsup.c (map_over_list): Make static. Always pass two arguments
to function.  Add arch argument, and use it instead of inarch.
Change all callers.
(ar_directory_doer): Make static.  Add ignored second argument.
Change all callers.
(ar_directory): Use open_inarch return value rather than inarch.
(ar_addlib_doer): Make static.
(ar_addlib): Use open_inarch return value rather than inarch.
(ar_extract): Remove unused local variable abfd.
binutils/ChangeLog
binutils/ar.c