Commit 82eb12a7 authored by johnvg@science.ru.nl's avatar johnvg@science.ru.nl

remove function DoFatalError in backend

parent 79a702f4
......@@ -1986,7 +1986,7 @@ static Exp ConvertNodeId (NodeId nid)
if (nid->nid_node_def)
return ConvertNode (nid->nid_node_def->def_node, nid);
else {
DoFatalError ("ConvertNode (SA): no node or nid");
error_in_function ("ConvertNodeId");
return & top;
}
} else {
......@@ -2574,7 +2574,7 @@ static Exp ConvertNode (Node node, NodeId nid)
}
}
default:
DoFatalError ("ConvertNode (SA): unknown node kind");
error_in_function ("ConvertNode");
return & top;
}
return e;
......
......@@ -36,7 +36,6 @@ extern int FClose (File f);
extern int FPutS (char *s, File f);
extern void DoFatalError (char *s);
extern void CmdError (char *errormsg1,char *errormsg2);
#define ReSize(A) (((A)+3) & ~3)
......@@ -44,12 +44,6 @@ int FPutS (char *s, File f)
/* Error Handling */
void DoFatalError (char *s)
{
fputs (s,stderr);
exit (0);
}
void CmdError (char *errormsg1,char *errormsg2)
{
fputs ("Command line error: ", stdout);
......
......@@ -40,12 +40,6 @@ int FPutS (char *s, File f)
return fputs (s, (FILE *) f);
}
void DoFatalError (char *s)
{
fputs (s,stderr);
exit (0);
}
void CmdError (char *errormsg1,char *errormsg2)
{
fputs ("Command line error: ", stdout);
......
extern int MACVAR;
#define CheckVersion if (MACVAR != VERSION) DoFatalError ("Wrong version number")
#define SizeT unsigned long
#define SizeOf(A) ((SizeT) sizeof (A))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment