home *** CD-ROM | disk | FTP | other *** search
- /* File error.c: 2.1 (83/03/20,16:02:00) */
- /*% cc -O -c %
- *
- */
-
- #include <stdio.h>
- #include "defs.h"
- #include "data.h"
-
- error (ptr)
- char ptr[];
- {
- FILE *tempfile;
-
- tempfile = output;
- output = stdout;
- doerror(ptr);
- output = tempfile;
- doerror(ptr);
- errcnt++;
- }
- doerror(ptr) char *ptr; {
- int k;
- comment ();
- outstr (line);
- nl ();
- comment ();
- k = 0;
- while (k < lptr) {
- if (line[k] == 9)
- tab ();
- else
- outbyte (' ');
- k++;
- }
- outbyte ('^');
- nl ();
- comment ();
- outstr ("****** ");
- outstr (ptr);
- outstr (" ******");
- nl ();
- }
-