/* throw - throwback of compiler errors */
/*
        G.C.Wraith  18/06/94
*/
#ifdef RISCOS
#include <stdio.h>
#include <stdlib.h>

extern int errorline;
extern char errormesg[100];
extern char errorfile[256];
extern void Chain(char *);
extern void StartTask(char *);

static char cmd[256];

void throwback(void);

void throwback(void)
{
 sprintf(cmd,"/ <Bob$Dir>.Throwback -f %s -s \"%s\" -l %d",
       errorfile,errormesg,errorline);
 Chain(cmd); 
}

void taskw_throw(void)
{
 sprintf(cmd,"/ <Bob$Dir>.Throwback -f %s -s \"%s\" -l %d",
       errorfile,errormesg,errorline);
 StartTask(cmd);
}
#endif
