📄 data process.lst
字号:
C51 COMPILER V7.02a DATAPR_1 04/05/2003 10:58:23 PAGE 1
C51 COMPILER V7.02a, COMPILATION OF MODULE DATAPR_1
OBJECT MODULE PLACED IN DATAPR~1.OBJ
COMPILER INVOKED BY: D:\Keil\C51\BIN\c51.exe DATAPR~1.C NOREGPARMS OBJECTEXTEND SMALL DEBUG PRINT REGISTERBANK(2) OPTIMI
-ZE(5)
stmt level source
1 //---------------------------------
2 //data process,change,save,getin
3 //2003.3.16 richard at xian
4 //---------------------------------
5 //
6 #include <absacc.h>
7 #include "charger.h"
8 //
9 //----------------------------------------
10 ///save tab to xdata at the one day
11 //-----Xsave the first value---------
12
13 void save(void)
14 {
15 1 static unsigned char data day;
16 1 unsigned char data i;
17 1
18 1 link p;
*** ERROR C202 IN LINE 18 OF DATAPR~1.C: 'link': undefined identifier
*** ERROR C141 IN LINE 18 OF DATAPR~1.C: syntax error near 'p'
19 1
20 1 i=today.date[2];
21 1 if(i!=day)
22 1 {
23 2 p=today.next;
*** ERROR C202 IN LINE 23 OF DATAPR~1.C: 'p': undefined identifier
24 2 //save data to linktable
25 2 for(i=0;i<18;i++)
26 2 {
27 3 if(i<3)p->date[i]=today.date[i];
*** ERROR C202 IN LINE 27 OF DATAPR~1.C: 'p': undefined identifier
28 3 p->work[i]=today.work[i];
*** ERROR C202 IN LINE 28 OF DATAPR~1.C: 'p': undefined identifier
29 3 }
30 2
31 2 today.next=p->next;
*** ERROR C202 IN LINE 31 OF DATAPR~1.C: 'p': undefined identifier
32 2 today.up=p->up;
*** ERROR C202 IN LINE 32 OF DATAPR~1.C: 'p': undefined identifier
33 2 }
34 1 day= i;//day of the month
35 1 }
C51 COMPILATION COMPLETE. 0 WARNING(S), 7 ERROR(S)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -