You should have received a copy of the GNU General Public License
along with GAS; see the file COPYING. If not, write to the Free
Software Foundation, 59 Temple Place - Suite 330, Boston, MA
- 02111-1307, USA. */
+ 02111-1307, USA. */
#include "as.h"
static int warning_count; /* Count of number of warnings issued */
-int
+int
had_warnings ()
{
return (warning_count);
static int error_count;
-int
+int
had_errors ()
{
return (error_count);
}
-
/* Print the current location to stderr. */
static void
* Like perror(3), but with more info.
*/
-void
+void
as_perror (gripe, filename)
- const char *gripe; /* Unpunctuated error theme. */
+ const char *gripe; /* Unpunctuated error theme. */
const char *filename;
{
const char *errtxt;
*/
#ifdef USE_STDARG
-void
+void
as_tsktsk (const char *format,...)
{
va_list args;
(void) putc ('\n', stderr);
} /* as_tsktsk() */
#else
-void
+void
as_tsktsk (format, va_alist)
const char *format;
va_dcl
*/
#ifdef USE_STDARG
-void
+void
as_warn (const char *format,...)
{
va_list args;
} /* as_warn() */
#else
/*VARARGS1 */
-void
+void
as_warn (format, va_alist)
const char *format;
va_dcl
to handle the varargs correctly and portably. */
#ifdef USE_STDARG
-void
+void
as_warn_where (char *file, unsigned int line, const char *format,...)
{
va_list args;
} /* as_warn() */
#else
/*VARARGS1 */
-void
+void
as_warn_where (file, line, format, va_alist)
char *file;
unsigned int line;
*/
#ifdef USE_STDARG
-void
+void
as_bad (const char *format,...)
{
va_list args;
#else
/*VARARGS1 */
-void
+void
as_bad (format, va_alist)
const char *format;
va_dcl
to handle the varargs correctly and portably. */
#ifdef USE_STDARG
-void
+void
as_bad_where (char *file, unsigned int line, const char *format,...)
{
va_list args;
#else
/*VARARGS1 */
-void
+void
as_bad_where (file, line, format, va_alist)
char *file;
unsigned int line;
*/
#ifdef USE_STDARG
-void
+void
as_fatal (const char *format,...)
{
va_list args;
} /* as_fatal() */
#else
/*VARARGS1*/
-void
+void
as_fatal (format, va_alist)
char *format;
va_dcl