i needed to update jaPBDoc for PB 5.42 and added some things.
i used the version from here (2008) :
http://forums.purebasic.com/german/view ... 68#p184768
and merged it with some of my changes and fixes.
DOWNLOAD:
http://www.wannabephoenix.de/PB/jaPBDoc ... -04-30.zip
Code: Select all
----------------------------------------------
2016-30-04
- fixed problem with sources that do not contain structures/interfaces
- fixed problem if procedure calls are used for variable initialization
- added support for List/Array/Map keywords in procedure argument declarations
----------------------------------------------
2016-29-04
- added support for 'NewMap' declarations
- fixed handling of declarations of array/lists/maps of pointers (both were working independently but not in combination)
- added paramters:
/nosortparam
Don't sort procedure arguments.
/nosortfield
Don't sort structure fields.
/nosortpafl
Don't sort procedure arguments and structure fields.
/nosort
Don't sort anything.
- added missing paramter documentation in ReadMe.html:
/stylesheet
The next parameter is a stylesheet filename that will be linked in the resulting html file.
- fixed missing removal of %STYLESHEET% placeholder in template if no stylesheet is specified
adapted code to PB 5.42:
- some function pointers now integer
- using Bool() where necessary
- using 'List' keyword in procedure declaration
- changed #PB_Sort_String to #PB_String
- changed an array name to 'array_' to not conflict with the new PB keyword 'Array'
----------------------------------------------
i didn't touch the linux code.
there is still an issue: i think the readme is wrong about that:
All this one-liners won't change the target (set by a ;**-comment), but also won't add anything to it
Code: Select all
;** g a : doc_a
Global a.l
Global b.l ;* doc_b
'doc_b' is added to both documentations and if you do it like this
Code: Select all
Global a.l ;** g a : doc_a
Global b.l ;** g b : doc_b
it works but you get a warning for each about overwriting a documentation.
what worked for me in this case was resetting the target from 'a' to nothing
Code: Select all
;** g a : doc_a
Global a.l
;**
Global b.l ;* doc_b