2011-12-27 00:50:27 +02:00
|
|
|
//
|
2021-03-08 00:43:25 +02:00
|
|
|
// RMAC - Renamed Macro Assembler for all Atari computers
|
2011-12-27 00:50:27 +02:00
|
|
|
// ERROR.H - Error Handling
|
2021-03-08 00:43:25 +02:00
|
|
|
// Copyright (C) 199x Landon Dyer, 2011-2021 Reboot and Friends
|
2011-12-27 00:50:27 +02:00
|
|
|
// RMAC derived from MADMAC v1.07 Written by Landon Dyer, 1986
|
2015-02-19 16:56:14 +02:00
|
|
|
// Source utilised with the kind permission of Landon Dyer
|
2011-12-27 00:50:27 +02:00
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef __ERROR_H__
|
|
|
|
#define __ERROR_H__
|
|
|
|
|
|
|
|
#include "rmac.h"
|
|
|
|
|
2017-05-07 05:07:36 +03:00
|
|
|
#define EBUFSIZ 256 // Max size of an error message
|
2011-12-27 00:50:27 +02:00
|
|
|
|
2017-04-20 22:29:31 +03:00
|
|
|
// Exported variables
|
2011-12-27 00:50:27 +02:00
|
|
|
extern int errcnt;
|
2012-01-18 04:06:46 +02:00
|
|
|
extern char * err_fname;
|
2011-12-27 00:50:27 +02:00
|
|
|
|
2017-04-20 22:29:31 +03:00
|
|
|
// Exported functions
|
2017-06-24 03:03:24 +03:00
|
|
|
int error(const char *, ...);
|
|
|
|
int warn(const char *, ...);
|
2013-03-05 19:47:22 +02:00
|
|
|
int fatal(const char *);
|
2011-12-27 00:50:27 +02:00
|
|
|
int interror(int);
|
2019-08-08 02:24:52 +03:00
|
|
|
void CantCreateFile(const char *);
|
2011-12-27 00:50:27 +02:00
|
|
|
void err_setup(void);
|
2019-08-08 02:24:52 +03:00
|
|
|
int ErrorIfNotAtEOL(void);
|
2011-12-27 00:50:27 +02:00
|
|
|
|
|
|
|
#endif // __ERROR_H__
|
2017-05-07 05:07:36 +03:00
|
|
|
|