Re: Morirz First Releas on sourceforge.net

Dave Dodge <[email protected]>
Newsgroups gmane.text.doxygen.devel
Message-ID <20060601060505.GE31273@basmati>
On Wed, May 31, 2006 at 06:25:05PM +0200, [email protected] wrote:
> To build Moritz just the following files has to be used:
[...]

Thanks for the information.  I was able to create a simple Makefile
and get it compiled on a Linux machine.  I also made some small
changes to the code, such as changing the failure code in main() to
return EXIT_FAILURE instead of -1, and to not run the PAUSE command.
g++ still shows one warning, but I'm not really a C++ programmer so I
don't know if anything needs to be done about it:

  src/xmlvisitor/cpp/xmlvst_gennsd.cpp: In copy constructor `XmlVisitor_GeneratorFuncNSD::XmlVisitor_GeneratorFuncNSD(const XmlVisitor_GeneratorFuncNSD&)':
  src/xmlvisitor/cpp/xmlvst_gennsd.cpp:79: warning: base class `class XmlVisitor' should be explicitly initialized in the copy constructor

It sort of works on Linux, but not completely:

By converting the .bat file to a bash script and using forward slashes
in the config file paths, I was able to process the files in
MoritzDistribution_2006_05_29 to produce HTML output.  That seemed to
be okay.

Then I changed Doxyfile_xml to point to the sourcecode for Moritz
itself, but it crashes while trying to process the XML that doxygen
created.  What's happening is that in the
XmlVisitor_FunctionBodyAnalyse::analyse function, in the section
marked "collect_BodyLines", it's entering the loop with this data:

  Function->id=class_xml_block___d___config_1048b2c620927a4b2e3841b2100cd28fa
  Function->location->bodystart=22
  Function->location->bodyend=24
  Codeline->lineno=25

Since Codeline is not in the function body, the loop never ends.
Codeline just keeps increasing until it gets to 54 and hits a null
pointer somewhere.  I tried changing the logic to test that
CodeLine < bodyend, which got it to run further, but eventually it
gets to this point:

  function 68 of 395: getCommentText of compound ToolGenNDS_AnlsStrct
  function 69 of 395: ToolGenNDS_AnlsStrct_CmdBf of compound ToolGenNDS_AnlsStrct_CmdBf
  function 70 of 395: ~ToolGenNDS_AnlsStrct_CmdBf of compound ToolGenNDS_AnlsStrct_CmdBf

and then gets stuck.  I let it run for a few minutes but it's just
using 99% of the CPU to do memory mapping and unmapping operations
over and over again for some reason.  I also see some more Pause
commands over in xmlvst_gennsd.cpp that would need to be removed.

                                                  -Dave Dodge
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.