1 //========================================================================
5 // Copyright 1996 Derek B. Noonburg
7 //========================================================================
10 #pragma implementation
20 // Send error messages to /dev/tty instead of stderr.
21 GBool errorsToTTY = gFalse;
30 if (!errorsToTTY || !(errFile = fopen("/dev/tty", "w")))
35 void CDECL error(int pos, char *msg, ...) {
45 fprintf(errFile, "Error (%d): ", pos);
47 fprintf(errFile, "Error: ");
50 vfprintf(errFile, msg, args);
52 fprintf(errFile, "\n");