From aabda2da07cdaa4d5ed277fce7d99da42499df1e Mon Sep 17 00:00:00 2001 From: David MacKenzie Date: Mon, 24 Jan 1994 23:33:23 +0000 Subject: * format.c (bfd_check_format_matches): New function. (bfd_check_format): Call it. (bfd_matching_formats): Function removed. * targets.c: Replace the vector added on Jan 21 with a count of entries in default_vector. * bfd-in2.h: Regenerated. --- bfd/targets.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'bfd/targets.c') diff --git a/bfd/targets.c b/bfd/targets.c index 9d1e58cfe63..1e90f3ad936 100644 --- a/bfd/targets.c +++ b/bfd/targets.c @@ -573,12 +573,10 @@ bfd_target *default_vector[] = { NULL }; -/* When there is an ambiguous match, bfd_check_format puts the names - of the matching targets in this array. - It is declared here so we can give it the same number of entries - (+ a terminating NULL) as the number of possible targets. */ -char *matching_vector[sizeof(target_vector)/sizeof(*target_vector) + 1]; - +/* When there is an ambiguous match, bfd_check_format_ambig puts the names + of the matching targets in an array. This variable is the maximum + number of entries that array could possibly need. */ +CONST size_t bfd_default_vector_entries = sizeof(target_vector)/sizeof(*target_vector); /* FUNCTION -- cgit v1.2.1