D2010 compiled line count discrepancy

二次信任 提交于 2019-12-06 19:47:47

问题


When building a project there are two places where source line count is reported:

  1. On the compile progress dialog
  2. 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:

Why does line count change so much from D2007 to D2010?


回答1:


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".




回答2:


Not parsed (ifdefed) code getting counted in D2007 because the empty line algorithm was too simple ? A small test would show.



来源:https://stackoverflow.com/questions/2194085/d2010-compiled-line-count-discrepancy

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!