2 * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. Please obtain a copy of the License at
10 * http://www.opensource.apple.com/apsl/ and read it before using this
13 * The Original Code and all software distributed under the License are
14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
18 * Please see the License for the specific language governing rights and
19 * limitations under the License.
21 * @APPLE_LICENSE_HEADER_END@
27 #include "stuff/breakout.h"
28 #include "stuff/errors.h"
31 * Print the warning message and the input file.
37 struct member
*member
,
44 fprintf(stderr
, "%s: ", progname
);
45 vfprintf(stderr
, format
, ap
);
48 fprintf(stderr
, "%s(%.*s)", arch
->file_name
,
49 (int)member
->member_name_size
, member
->member_name
);
52 fprintf(stderr
, "%s", arch
->file_name
);
53 if(arch
->fat_arch_name
!= NULL
)
54 fprintf(stderr
, " (for architecture %s)\n", arch
->fat_arch_name
);
56 fprintf(stderr
, "\n");
61 * Print the error message the input file and increment the error count
67 struct member
*member
,
74 fprintf(stderr
, "%s: ", progname
);
75 vfprintf(stderr
, format
, ap
);
78 fprintf(stderr
, "%s(%.*s)", arch
->file_name
,
79 (int)member
->member_name_size
, member
->member_name
);
82 fprintf(stderr
, "%s", arch
->file_name
);
83 if(arch
->fat_arch_name
!= NULL
)
84 fprintf(stderr
, " (for architecture %s)\n", arch
->fat_arch_name
);
86 fprintf(stderr
, "\n");
92 * Print the fatal error message the input file and exit non-zero.
98 struct member
*member
,
104 va_start(ap
, format
);
105 fprintf(stderr
, "%s: ", progname
);
106 vfprintf(stderr
, format
, ap
);
109 fprintf(stderr
, "%s(%.*s)", arch
->file_name
,
110 (int)member
->member_name_size
, member
->member_name
);
113 fprintf(stderr
, "%s", arch
->file_name
);
114 if(arch
->fat_arch_name
!= NULL
)
115 fprintf(stderr
, " (for architecture %s)\n", arch
->fat_arch_name
);
117 fprintf(stderr
, "\n");
121 #endif /* !defined(RLD) */