[fpc-devel] fpdoc has incomplete type definitions in the documentation output

Graeme Geldenhuys graemeg.lists at gmail.com
Wed Aug 11 12:25:50 CEST 2010


Attached is a patch for review, implementing the missing hint modifiers for
Records and Properties for fcl-passrc.

The one problem I have is with the inconsistent syntax of hint modifiers.
Sometimes a hint modifier my not have a preceding semi-colon (record types)
and sometimes it must have a preceding semi-colon (properties of a class).
So I handled it as best as I could - using a extra boolean parameter.

eg: GetDeclaration now returns the following code listings...

  TRGBTriple = record
    Red: word;
    Green: word;
    Blue: word;
    Alpha: word;
  end deprecated;


  property RootWindow: TfpgWinHandle; platform;

See attached patch for review. If it's ok, then the call to ProcessHint()
needs to be added to the remainder TPasElement descendant classes for
wherever hint modifiers can be applied. [I'm not sure where everywhere in
the pascal syntax that is though]

  - Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal

-------------- next part --------------
A non-text attachment was scrubbed...
Name: passrc.patch
Type: application/mbox
Size: 2470 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20100811/adeaabf4/attachment.mbox>

More information about the fpc-devel mailing list