Deleted Added
full compact
format.c (104834) format.c (107492)
1/* Generic BFD support for file formats.
2 Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1999, 2000, 2001, 2002
3 Free Software Foundation, Inc.
4 Written by Cygnus Support.
5
6This file is part of BFD, the Binary File Descriptor library.
7
8This program is free software; you can redistribute it and/or modify

--- 118 unchanged lines hidden (view full) ---

127 if (!bfd_read_p (abfd)
128 || (unsigned int) abfd->format >= (unsigned int) bfd_type_end)
129 {
130 bfd_set_error (bfd_error_invalid_operation);
131 return false;
132 }
133
134 if (abfd->format != bfd_unknown)
1/* Generic BFD support for file formats.
2 Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1999, 2000, 2001, 2002
3 Free Software Foundation, Inc.
4 Written by Cygnus Support.
5
6This file is part of BFD, the Binary File Descriptor library.
7
8This program is free software; you can redistribute it and/or modify

--- 118 unchanged lines hidden (view full) ---

127 if (!bfd_read_p (abfd)
128 || (unsigned int) abfd->format >= (unsigned int) bfd_type_end)
129 {
130 bfd_set_error (bfd_error_invalid_operation);
131 return false;
132 }
133
134 if (abfd->format != bfd_unknown)
135 return abfd->format == format;
135 return (boolean) (abfd->format == format);
136
137 /* Since the target type was defaulted, check them
138 all in the hope that one will be uniquely recognized. */
139 save_targ = abfd->xvec;
140 match_count = 0;
141 ar_match_index = _bfd_target_vector_entries;
142
143 if (matching)

--- 206 unchanged lines hidden (view full) ---

350 if (bfd_read_p (abfd)
351 || (unsigned int) abfd->format >= (unsigned int) bfd_type_end)
352 {
353 bfd_set_error (bfd_error_invalid_operation);
354 return false;
355 }
356
357 if (abfd->format != bfd_unknown)
136
137 /* Since the target type was defaulted, check them
138 all in the hope that one will be uniquely recognized. */
139 save_targ = abfd->xvec;
140 match_count = 0;
141 ar_match_index = _bfd_target_vector_entries;
142
143 if (matching)

--- 206 unchanged lines hidden (view full) ---

350 if (bfd_read_p (abfd)
351 || (unsigned int) abfd->format >= (unsigned int) bfd_type_end)
352 {
353 bfd_set_error (bfd_error_invalid_operation);
354 return false;
355 }
356
357 if (abfd->format != bfd_unknown)
358 return abfd->format == format;
358 return (boolean) (abfd->format == format);
359
360 /* Presume the answer is yes. */
361 abfd->format = format;
362
363 if (!BFD_SEND_FMT (abfd, _bfd_set_format, (abfd)))
364 {
365 abfd->format = bfd_unknown;
366 return false;

--- 38 unchanged lines hidden ---
359
360 /* Presume the answer is yes. */
361 abfd->format = format;
362
363 if (!BFD_SEND_FMT (abfd, _bfd_set_format, (abfd)))
364 {
365 abfd->format = bfd_unknown;
366 return false;

--- 38 unchanged lines hidden ---