⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 error.c

📁 Outputs messages to a 2line LCD
💻 C
字号:
/* File error.c: 2.1 (83/03/20,16:02:00) */
/*% cc -O -c %
 *
 */

#include <stdio.h>
#include "defs.h"
#include "data.h"
#include	"headers.h"
 

void error(char *ptr) {
   FILE *tempfile;

   tempfile = output;
   output = stdout;
   doerror(ptr);
   output = tempfile;
   doerror(ptr);
   errcnt++;
}


void warning(char *ptr) {
   FILE *tempfile;

   tempfile = output;
   output = stdout;
   doerror(ptr);
   output = tempfile;
   doerror(ptr);
}


void doerror(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(" Line ");
   onum(LineNum);
   outstr(": ");
   outstr(ptr);
   nl();
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -