// ERROR.C - Error Handling
// Copyright (C) 199x Landon Dyer, 2011 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
//
#include "error.h"
//
int at_eol(void)
{
+ char msg[256];
+
if (*tok != EOL)
- error("syntax error");
+ {
+ sprintf(msg, "syntax error. expected EOL, found $%X ('%c')", *tok, *tok);
+ error(msg);
+ }
return 0;
}
//
-// Cannot Create a File
+// Cannot create a file
//
void cantcreat(const char * fn)
{
//
-// Setup for Error Message
+// Setup for error message
// o Create error listing file (if necessary)
// o Set current filename
//
//
-// Display Error Message
+// Display error message
//
int error(const char * s)
{