2008 November 27th Thursday (十一月 二十七日 木曜日)

今日修复了一个在我负责的中文语言模块中的错误。该错误导致词法解析器在文件末尾时误报I/O异常。我重写了输入流的源代码,并在输入流结构中新增了两个成员变量来记录文件大小及已加载字节数,还定义了一个宏来预防缓冲区溢出。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

   Today I modified a bug in my china language.  This bug made a mistaken to report a IO error when the lexical parser reached at the end of a file.
I rewote the source of input stream.  I added two members in the struct input stream.  The previous version is wrong.  When loading data from a file,
an input stream must know how many size of a file, and how many bytes still is not loaded.

  What is more, I defined a macro for many buffer over check.

  I have to delay the project, and turn to my work.  There are somethings must be done.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值