作者ric2k1 (Ric)
看板EE_DSnP
標題[公告] HW#3 bug fix
時間Tue Oct 27 12:33:38 2009
Severity:
Critical: You must do the update
Optional: It's up to you to do the update. It won't affect the grading.
Note : Just FYI. Won't affect the program.
==========================================================================
1. 修正 bug in #2361
[Severity] Optional
[Sympton]
(i) mcalc>
// 輸入一些空白
(ii) mcalc> @#%*&@#^% // 按什麼都沒反應
[Causes]
In cmdReader.cpp (Uh, you cannot see it), when "enter" key is pressed
and when addHistory() returns false, need to reset "_readBufPtr" to
"_readBuf".
[Affected]
cmdReader-[32,64].o
cmdParser.h // printPrompt() is redefined as resetBufAndPrintPrompt()
[Updated]
hw3.tgz
2. Command registration robustness
[Severity] Optional
[Sympton]
If we register (DOfile, 2) and (DOFill, 3) commands, both can be
successfully registered.
[Causes]
In CmdParser::regCmd() function, need to check if any of the substrings
of the registering command has already existed.
[Affected]
cmdParser.cpp // CmdParser::regCmd()
[Updated]
hw3.tgz
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.21.241