aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1995-07-04 20:38:00 +0000
committerIan Lance Taylor <ian@airs.com>1995-07-04 20:38:00 +0000
commitcbd0453da48ab23efdc955e086578064b899c0c4 (patch)
tree4243ff177290aa7ddaf277c0e5bd680847fbb067
parent52af6a44ad1f772d5bf3e714a8fef86783589ed4 (diff)
downloadgdb-cbd0453da48ab23efdc955e086578064b899c0c4.zip
gdb-cbd0453da48ab23efdc955e086578064b899c0c4.tar.gz
gdb-cbd0453da48ab23efdc955e086578064b899c0c4.tar.bz2
Rename truncate to ar_truncate
-rw-r--r--binutils/ChangeLog12
-rw-r--r--binutils/ar.c12
2 files changed, 12 insertions, 12 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 734ddab..4f16e4d 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -3,13 +3,13 @@ Tue Jul 4 14:48:42 1995 Ian Lance Taylor <ian@cygnus.com>
* ar.c (replace_members): In verbose messages, use 'r' when
replacing a member, and 'a' when adding one.
- * ar.c (truncate): New static variable.
+ * ar.c (ar_truncate): New static variable.
(normalize): Change return type to const char *. Add abfd
- argument. Change all callers. If truncate, chop the filename to
- abfd->ar_max_namelen.
- (main): For the 'f' modifier, set truncate to true. Don't change
- quick_append to replace to truncate is true.
- (do_quick_append): If truncate, set BFD_TRADITIONAL_FORMAT.
+ argument. Change all callers. If ar_truncate, chop the filename
+ to abfd->ar_max_namelen.
+ (main): For the 'f' modifier, set ar_truncate to true. Don't
+ change quick_append to replace if ar_truncate is true.
+ (do_quick_append): If ar_truncate, set BFD_TRADITIONAL_FORMAT.
(write_archive): Likewise.
* binutils.texi, ar.1: Document 'f' modifier.
diff --git a/binutils/ar.c b/binutils/ar.c
index 763f561..eb98ab3 100644
--- a/binutils/ar.c
+++ b/binutils/ar.c
@@ -143,7 +143,7 @@ enum pos
} postype = pos_default;
/* Whether to truncate names of files stored in the archive. */
-static boolean truncate = false;
+static boolean ar_truncate = false;
int interactive = 0;
@@ -250,7 +250,7 @@ normalize (file, abfd)
else
filename = file;
- if (truncate
+ if (ar_truncate
&& abfd != NULL
&& strlen (filename) > abfd->xvec->ar_max_namelen)
{
@@ -439,7 +439,7 @@ main (argc, argv)
mri_mode = 1;
break;
case 'f':
- truncate = true;
+ ar_truncate = true;
break;
default:
fprintf (stderr, "%s: illegal option -- %c\n", program_name, c);
@@ -493,7 +493,7 @@ main (argc, argv)
rebuild the name table. Unfortunately, at this point we
don't actually know the maximum name length permitted by this
object file format. So, we guess. FIXME. */
- if (operation == quick_append && ! truncate)
+ if (operation == quick_append && ! ar_truncate)
{
char **chk;
@@ -823,7 +823,7 @@ do_quick_append (archive_filename, files_to_append)
program_name, archive_filename);
}
- if (truncate)
+ if (ar_truncate)
temp->flags |= BFD_TRADITIONAL_FORMAT;
/* assume it's an achive, go straight to the end, sans $200 */
@@ -901,7 +901,7 @@ write_archive (iarch)
been explicitly requested not to. */
obfd->has_armap = write_armap >= 0;
- if (truncate)
+ if (ar_truncate)
{
/* This should really use bfd_set_file_flags, but that rejects
archives. */