X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=blobdiff_plain;f=error.h;h=f62a17db1946539ef01b58e8153665efce09bed4;hp=7754792132956d6eb8e450f7201bf4ab2f5161b3;hb=ace0b549a94110b69ec61442f825fb421b79799a;hpb=d09274f3e3d4dca122c308a621ea8edc100b7d99 diff --git a/error.h b/error.h index 7754792..f62a17d 100644 --- a/error.h +++ b/error.h @@ -1,9 +1,9 @@ // -// RMAC - Reboot's Macro Assembler for the Atari Jaguar Console System +// RMAC - Reboot's Macro Assembler for all Atari computers // ERROR.H - Error Handling -// Copyright (C) 199x Landon Dyer, 2011 Reboot and Friends +// Copyright (C) 199x Landon Dyer, 2011-2020 Reboot and Friends // RMAC derived from MADMAC v1.07 Written by Landon Dyer, 1986 -// Source Utilised with the Kind Permission of Landon Dyer +// Source utilised with the kind permission of Landon Dyer // #ifndef __ERROR_H__ @@ -11,21 +11,20 @@ #include "rmac.h" -#define EBUFSIZ 200 // Max size of an error message +#define EBUFSIZ 256 // Max size of an error message -// Globals, externals etc +// Exported variables extern int errcnt; extern char * err_fname; -// Prototypes -int error(char *); -int errors(char *, char *); -int fatal(char *); -int warn(char *); -int warns(char *, char *); -int warni(char *, unsigned); +// Exported functions +int error(const char *, ...); +int warn(const char *, ...); +int fatal(const char *); int interror(int); -void cantcreat(char *); +void CantCreateFile(const char *); void err_setup(void); +int ErrorIfNotAtEOL(void); #endif // __ERROR_H__ +