Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bring config engine to 2014 and don't polute namespace.
Implement a TODO from June 2008 and get ride of a slack of global variables used by the config engine. The code seems to be have been refactored in 2008 to access most configfile parsing via the CONFIG class and it already has most of the needed structures which also were kept as global variables. From now on the config engine is accessed via the CONFIG class and only res_all is left as global variable. As a side effect the config CLASS is now available as my_config and is a global variable. Global variable introduced: - CLASS CONFIG *my_config (Global configuration) Global variables removed: - res_all_size - r_first - r_last - resources - res_head It should be possible also to get ride of res_all but that needs some more testing. And is currently not very high on my urgency map.
- Loading branch information
Marco van Wieringen
committed
Feb 17, 2015
1 parent
6d4e8c8
commit 3d09d78
Showing
12 changed files
with
64 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.