D2010编译行数差异
构建项目时,有两个地方会报告源代码行数:
- 在编译进度对话框
- 中的“项目 | ”下。信息
在 Delphi 2007 中,对于我们正在构建的项目,这两个数字是相同的。
在 Delphi 2010 中,这两个数字截然不同。 (1st) 计数多出 100 万行或 40%。 (2nd) 计数与 Delphi 2007 计数足够接近,足以满足正在构建的正确文件考虑到移植到 D2010 中的代码更改。构建环境中根本不存在源文件的替代版本。
所以问题是:
为什么第一行和第二行计数在 D2010 中差异如此之大,而在 D2007 中它们可以理解地相同?
相关:
When building a project there are two places where source line count is reported:
- On the compile progress dialog
- Under Project | Information
In Delphi 2007 these two numbers were identical for the project we are building.
In Delphi 2010 these two numbers are wildly different. The (1st) count is larger by a count of 1 million lines or 40%. The (2nd) count is close enough to the Delphi 2007 count to be satisfied the correct files are being built accounting for code changes in porting to D2010. Alternative versions of source files simply do not exist in the build environment.
So the question is:
Why are 1st and 2nd line count so drastically different in D2010 when they were understandably identical in D2007?
Related:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我们已经对此进行了调查,这是一个错误。这是转向 MS Build 的结果。我们已在当前版本中修复了该问题。
正确数字是“项目信息”菜单中的数字。编译对话框中报告的结果是“近似值”。
We've investigated this, and it is a bug. It came as a result of shifting to MS Build. We've fixed it in our current build.
The correct number is the one in the Project Information menu. The one that is reported in the compiling dialog is, well, an "approximation".
由于空行算法太简单,D2007 中未解析(ifdefed)的代码被计数?一个小测试就会显示出来。
Not parsed (ifdefed) code getting counted in D2007 because the empty line algorithm was too simple ? A small test would show.