~moonshot/moonshot-tr/master

Viewing all changes in revision 430.

  • Committer: Jennifer Richards
  • Date: 2017-09-08 23:59:27 UTC
  • Revision ID: git-v1:7a6dc59919519fc7a7927301da0c079298258c92
Rearrange config file loading to allow splitting across files

Prior to this commit, configuration files were loaded one-by-one,
parsing all the sections of each file before moving to the next. This
caused problems unless the files were arranged so that realms were
defined before they were referred to by communities when the files
were read in lexical order. This commit rearranges this so that all
files are first parsed into internal JSON structures, then the first
section of all these structures is parsed, the second section of all
structures is parsed, etc. This eliminates the dependency on file
order that caused the bug.

Also fixed a memory leak: the JSON structures were not being properly
freed after being parsed. These should now be freed.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: