documentor, ecere/sys/json: Addressed various issues with new eCON docs
authorJerome St-Louis <jerome@ecere.com>
Thu, 25 Feb 2016 21:04:57 +0000 (16:04 -0500)
committerJerome St-Louis <jerome@ecere.com>
Fri, 26 Feb 2016 04:23:30 +0000 (23:23 -0500)
commitf8360233635a8d682bef16f43118a0c20f45760b
tree2d68218095ca12d7c8addede5fc4093dfda74d01
parentd2a1e03f1211450a2179733df2b0059dae032cd1
documentor, ecere/sys/json: Addressed various issues with new eCON docs
- Was using uninitialized local char array as index into cache!!
- Fix use of freed memory:
   - Updating time stamp on doc access (getDoc() could previously delete the 'doc' it returns in the pruning at the end)
   - Making use of instance reference count so as to keep one reference for the cache, and one for the returned doc
   - Freeing returned foc in ReadDoc()
- Fixed 'clearing' of descriptions (Was refusing to save 'empty' changes)
- Clearing empty MethodDoc and FunctionDoc
- Avoiding to save empty class doc and namespace doc
- Fixed bad access of '_class' member on non 'class' types
documentor/src/Documentor.ec
ecere/src/sys/JSON.ec