[fpc-devel] Errors with make rtl.chk on Windows
DrDiettrich1 at aol.com
Sat Dec 3 15:15:51 CET 2011
Michael Van Canneyt schrieb:
>> You remember my -n and -v options?
> Absolutely, and I'll gladly accept patches implementing those 2 things
> in fpdoc.
> If you could separate those out from your other work, that would be much
> appreciated. If not, send whatever you have, and I'll try to extract it
I'll attach an patch with my remaining changes, fpdoc-nv.patch. Here's a
roadmap for you:
I've enclosed most still different parts of the code with conditional
DoDi. This should allow (me) to run both versions from the same source,
and helps in searching for differences.
pparser.pp is extended with a -v option, passed as commandline argument.
It writes out the currently processed unit. Not perfect, of course, it
would be more useful when the current unit were shown with every error
message, by default.
pscanner.pp is even more nasty, I could not find an easy way to
implement a -v (or -vt) option. That's why I added a conditional
"Verbose", that turns on the trace of tried include directories. Perhaps
you find an better way, using the settings of pparser.
IMO this option is essential for the fpdoc compiler (--input) options
setup in every project. I'd be happy if you can provide common package
<package name="bla" options="-Fi common to all units"/>
which is automatically appended to all unit options.
dGlobals.pp contains the Verbose flag, for use in fpdoc. And the help
messages, of course.
AddDocFile gets an additional package name, that allows to exclude
unrelated docs, and also does wildcard substitution.
dw_html.pp traces the created HTML files. Like with pparser, the element
name (html file) should be shown with *every* error message instead.
fpdoc.pp obviously accepts the added commandline options. It also
creates a default project whenever invoked without a project.
fpdocproj.pas Options.DryRun should be obvious.
Improved --imports handling, so that the prefix is no more required (can
be synthesized). This part can be ommitted.
Moved CreateDocumentation here, to make it independent from commandline
fpdocxmlopts.pas can be almost ignored, it retains my old save/load code
(see DoDiSave), until I'm sure that I added all required modifications
to your code. Thanks for extracting the file names from the options :-)
Have fun :-)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the fpc-devel