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

📄 convert.lst

📁 实现将lwIP协议移植于mcu 51单片机的测试程序
💻 LST
字号:
C51 COMPILER V7.02b   CONVERT                                                              08/25/2006 11:59:54 PAGE 1   


C51 COMPILER V7.02b, COMPILATION OF MODULE CONVERT
OBJECT MODULE PLACED IN convert.obj
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE convert\convert.c LARGE INCDIR(c:\t\inc;c:\t\inc) DEBUG OBJECTEXTEND PRINT(
                    -.\convert.lst) OBJECT(convert.obj)

stmt level    source

   1          //**********************************************************************************
   2          //杨屹    2002/08/21    第一版
   3          //字符串与数字互相转换
   4          //联系方法:gdtyy@ri.gdt.com.cn(2003/07/31以前有效)
   5          //**********************************************************************************
   6          #include <general.h>
*** WARNING C318 IN LINE 6 OF convert\convert.c: can't open file 'general.h'
   7          //#include <convert.h>
   8          //#include <inettype.h>
   9          
  10          bit IPadrToHEX(unsigned char *Str,union ip_address_type *ip)
  11          {
  12   1              unsigned char i,j,ch,x;
  13   1      
  14   1              ch=*Str++;
  15   1      
  16   1              for(j=0;j<3;j++){
  17   2                      x=0;
  18   2                      for(i=0;i<4;i++){
  19   3                              if(ch=='.') {ch=*Str++;break;}
  20   3                              else if(i==3) return 0;
  21   3                              else if(ch<0&&ch>9) return 0;
  22   3                              else
  23   3                                      x=10*x+(ch-'0');
  24   3                              ch=*Str++;
  25   3                      }
  26   2                      ip->bytes[j]=x;
*** ERROR C230 IN LINE 26 OF CONVERT\CONVERT.C: 'ip_address_type': unknown struct/union/enum tag
*** ERROR C204 IN LINE 26 OF CONVERT\CONVERT.C: 'bytes': undefined member
  27   2              }
  28   1      
  29   1              x=0;
  30   1              for(i=0;i<4;i++){
  31   2                      if(ch=='\0') {ch=*Str++;break;}
  32   2                      else if(i==3) return 0;
  33   2                      else if(ch<0&&ch>9) return 0;
  34   2                      else
  35   2                              x=10*x+(ch-'0');
  36   2                      ch=*Str++;
  37   2              }
  38   1              ip->bytes[3]=x;
*** ERROR C230 IN LINE 38 OF CONVERT\CONVERT.C: 'ip_address_type': unknown struct/union/enum tag
*** ERROR C204 IN LINE 38 OF CONVERT\CONVERT.C: 'bytes': undefined member
  39   1              return 1;
  40   1      }
  41          
  42          void HEXToIPadr(unsigned char *Str,union ip_address_type *ip)
  43          {
  44   1              unsigned char i;
  45   1              unsigned char x,y;
  46   1      
  47   1              for(i=0;i<4;i++){
  48   2                      x=ip->bytes[i];
*** ERROR C230 IN LINE 48 OF CONVERT\CONVERT.C: 'ip_address_type': unknown struct/union/enum tag
C51 COMPILER V7.02b   CONVERT                                                              08/25/2006 11:59:54 PAGE 2   

*** ERROR C204 IN LINE 48 OF CONVERT\CONVERT.C: 'bytes': undefined member
  49   2                      if(x>99){
  50   3                              y=x/100;*Str++=y+'0';
  51   3                              x=x-100*y;y=x/10;*Str++=y+'0';
  52   3                              x=x-10*y;*Str++=x+'0';
  53   3                              if(i==3) *Str++='\0';
  54   3                              else *Str++='.';
  55   3                      }
  56   2                      else if(x>9){
  57   3                              y=x/10;*Str++=y+'0';
  58   3                              x=x-10*y;*Str++=x+'0';
  59   3                              if(i==3) *Str++='\0';
  60   3                              else *Str++='.';
  61   3                      }
  62   2                      else{
  63   3                              *Str++=x+'0';
  64   3                              if(i==3) *Str++='\0';
  65   3                              else *Str++='.';
  66   3                      }
  67   2              }       
  68   1      } 

C51 COMPILATION COMPLETE.  1 WARNING(S),  6 ERROR(S)

⌨️ 快捷键说明

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