X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=blobdiff_plain;f=error.h;h=f4337286ad9789da5cb6eebdc2eec9eadb9dc2cd;hp=06d9e466f0ad4eafe9a43ecd50724788617393b9;hb=9153334781cd2e23750f4dc002e847606c07a1f0;hpb=d0c28c349ddfb8393568037f68bddbe8979ce0df diff --git a/error.h b/error.h index 06d9e46..f433728 100644 --- a/error.h +++ b/error.h @@ -1,7 +1,7 @@ // -// 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-2018 Reboot and Friends // RMAC derived from MADMAC v1.07 Written by Landon Dyer, 1986 // Source utilised with the kind permission of Landon Dyer // @@ -11,22 +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(const char *); -int errors(const char *, char *); +// Exported functions +int error(const char *, ...); +int warn(const char *, ...); int fatal(const char *); -int warn(const char *); -int warns(const char *, char *); -int warni(const char *, unsigned); int interror(int); void cantcreat(const char *); void err_setup(void); int at_eol(void); #endif // __ERROR_H__ +