[fpc-devel] fpdoc fails to get full declaration of constants

Graeme Geldenhuys graemeg.lists at gmail.com
Wed Aug 4 09:29:49 CEST 2010



Running fpdoc over fpGUI code, the Linear Output Writer (LaTeX and new IPF
output) for constants do not contain the full declaration.

The problem is detected inside the TLinearWriter.WriteConsts() method.
Debugging the fpdoc code inside WriteConsts(), it retrieves the declaration
as shown in the debug tooltip (screeenshot attached).

fpdoc (linear writer descendant):

   clAliceBlue =


The actual code (inside an include file) is:

   clAliceBlue = TfpgColor($f0f8ff);


The problem seems to be localised to the Linear Output descendants. I
double checked with the fpdoc HTML output, and the clAliceBlue declaration
is full and correct.


I'm using FPC 2.5.1 Trunk (updated yesterday).  Is this down to a
fcl-passrc parser bug, or a fpdoc processing bug. I believe the latter is
true because otherwise the HTML Writer output would also have been wrong.


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot.png
Type: image/png
Size: 9711 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20100804/5225c1ba/attachment.png>


More information about the fpc-devel mailing list