X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=blobdiff_plain;f=error.c;fp=error.c;h=81983b14afecc912d844c54385619cf0758f2153;hp=6db7ad0f29c29d3d7261fafcd9f15dad2888222d;hb=29fa5dcf504b966803063a1c2891f58f97126d04;hpb=bdbf34766f4d074a5933eb1326fe4ce03d249e10 diff --git a/error.c b/error.c index 6db7ad0..81983b1 100644 --- a/error.c +++ b/error.c @@ -11,18 +11,21 @@ #include "listing.h" #include "token.h" +// Exported variables int errcnt; // Error count char * err_fname; // Name of error message file +// Internal variables static long unused; // For supressing 'write' warnings // // Report error if not at EOL +// // N.B.: Since this should *never* happen, we can feel free to add whatever // diagnostics that will help in tracking down a problem to this function. // -int at_eol(void) +int ErrorIfNotAtEOL(void) { if (*tok != EOL) { @@ -40,9 +43,9 @@ int at_eol(void) // // Cannot create a file // -void cantcreat(const char * fn) +void CantCreateFile(const char * fn) { - printf("cannot create: '%s'\n", fn); + printf("Cannot create file: '%s'\n", fn); exit(1); } @@ -66,7 +69,7 @@ void err_setup(void) err_fname = NULL; if ((err_fd = open(fnbuf, _OPEN_FLAGS, _PERM_MODE)) < 0) - cantcreat(fnbuf); + CantCreateFile(fnbuf); err_flag = 1; }