[14/20] lucy-clownfish git commit: Remove global class registry

2017-03-18 Thread nwellnhof
Remove global class registry Replaced by the class array in CFCParcel. Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/682278c4 Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/682278c4

[12/20] lucy-clownfish git commit: Store CFCClass pointer in CFCMethod

2017-03-18 Thread nwellnhof
Store CFCClass pointer in CFCMethod Store a weak pointer to the class containing the method. Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/a0e051a0 Tree:

[16/20] lucy-clownfish git commit: Switch some code over to CFCClass_in_parcel

2017-03-18 Thread nwellnhof
Switch some code over to CFCClass_in_parcel Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/bea2a98f Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/bea2a98f Diff:

[03/20] lucy-clownfish git commit: Use WeakPtr in CFCType

2017-03-18 Thread nwellnhof
Use WeakPtr in CFCType Weaken the parcel pointer, allowing to store a class array in CFCParcel later. Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/7ce20fd2 Tree:

[20/20] lucy-clownfish git commit: Merge branch 'cfc-parcel'

2017-03-18 Thread nwellnhof
Merge branch 'cfc-parcel' Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/d601b8b8 Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/d601b8b8 Diff:

[19/20] lucy-clownfish git commit: Remove classes array from CFCHierarchy

2017-03-18 Thread nwellnhof
Remove classes array from CFCHierarchy Replaced by class array in CFCParcel. Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/8fbf9c96 Tree:

[18/20] lucy-clownfish git commit: Rework setup of parent/child relationship

2017-03-18 Thread nwellnhof
Rework setup of parent/child relationship Set up parent/child relationship of classes in CFCParcel. Connect and sort classes in a single function. Make sure that prereq parcels are registered first. Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo Commit:

[11/20] lucy-clownfish git commit: Store class array in parcel

2017-03-18 Thread nwellnhof
Store class array in parcel Store an array of all classes that belong to a parcel in CFCParcel. Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/22e055c3 Tree:

[08/20] lucy-clownfish git commit: Remove CFCHierarchy_ordered_classes

2017-03-18 Thread nwellnhof
Remove CFCHierarchy_ordered_classes Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/89712636 Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/89712636 Diff:

[05/20] lucy-clownfish git commit: Add CFCParcel_class functions

2017-03-18 Thread nwellnhof
Add CFCParcel_class functions Search classes in a parcel by name or struct symbol. In most cases, it's important to only search classes in a parcel or its direct prerequisites. Otherwise, classes from random other parcels could be picked up. Project:

[17/20] lucy-clownfish git commit: Stop tracking parcels that are inherited from

2017-03-18 Thread nwellnhof
Stop tracking parcels that are inherited from This code was unused. The original idea was to allow circular dependencies between parcels as long as they don't inherit classes from each other. This is an unimportant feature that had to be solved differently, now that we specify prereqs in .cfp

[02/20] lucy-clownfish git commit: Add CFCClass_in_parcel and CFCClass_in_same_parcel

2017-03-18 Thread nwellnhof
Add CFCClass_in_parcel and CFCClass_in_same_parcel Simple but useful helper functions. Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/bfd19d20 Tree:

[13/20] lucy-clownfish git commit: Rework URI resolution

2017-03-18 Thread nwellnhof
Rework URI resolution Add CFCMethod_get_docucomment to get inherited CFCDocuComment. Use correct base class when resolving URIs. Only search parcel and prereqs for full struct symbols. Also search prereqs for short struct symbols. Search all source parcels and their prereqs for standalone .md

[01/20] lucy-clownfish git commit: Implement CFCWeakPtr

2017-03-18 Thread nwellnhof
Repository: lucy-clownfish Updated Branches: refs/heads/master ab9d38830 -> d601b8b8b Implement CFCWeakPtr We mostly avoided circular references in CFC so far, although it's often useful to have pointers to a parent or ancestor in the tree structures CFC operates on. Weak pointers allow to

[04/20] lucy-clownfish git commit: Use WeakPtr in CFCClass

2017-03-18 Thread nwellnhof
Use WeakPtr in CFCClass Weaken the parcel pointer. This allows to store a class array in CFCParcel later. Also weaken the parent pointer, so that the circular reference doesn't have to be broken manually. Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo Commit:

[10/20] lucy-clownfish git commit: Add CFCType_get_class

2017-03-18 Thread nwellnhof
Add CFCType_get_class Store a weak pointer to CFCClass in CFCType for object types. Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/850d69bf Tree:

[07/20] lucy-clownfish git commit: Sort class arrays of parcels

2017-03-18 Thread nwellnhof
Sort class arrays of parcels Some of the code generators require that parent classes are processed before subclasses. Sort the class array accordingly when building the hierarchy. Also sort subclasses by class name to guarantee a consistent order. This should make the CFC output completely

[15/20] lucy-clownfish git commit: Simplify CFCBindMeth_method_def

2017-03-18 Thread nwellnhof
Simplify CFCBindMeth_method_def Remove unneeded static functions. Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/821bf0d0 Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/821bf0d0 Diff:

[09/20] lucy-clownfish git commit: Store CFCClass pointer in parser state

2017-03-18 Thread nwellnhof
Store CFCClass pointer in parser state Store a CFCClass pointer instead of the class name. Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/1ff6ed0f Tree: