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;
23 // File to send error (and other) messages to.
27 if (!errorsToTTY || !(errFile = fopen("/dev/tty", "w")))
31 void CDECL error(int pos, char *msg, ...) {
37 fprintf(errFile, "Error (%d): ", pos);
39 fprintf(errFile, "Error: ");
41 vfprintf(errFile, msg, args);
43 fprintf(errFile, "\n");