Code Cleanup

- Integrated Context.config.
- Eliminated Config& as a function argument.
- Added extern references to Context where needed.
This commit is contained in:
Paul Beckingham 2009-06-03 02:03:49 -04:00
parent 98978c7c00
commit 66bd5fc3c0
29 changed files with 1115 additions and 451 deletions

View file

@ -27,10 +27,12 @@
#include <iostream>
#include <vector>
#include <string>
#include "Config.h"
#include "Context.h"
#include "util.h"
#include "text.h"
extern Context context;
static const char* newline = "\n";
static const char* noline = "";
@ -294,9 +296,9 @@ std::string upperCase (const std::string& input)
}
////////////////////////////////////////////////////////////////////////////////
const char* optionalBlankLine (Config& conf)
const char* optionalBlankLine ()
{
if (conf.get ("blanklines", true) == true)
if (context.config.get ("blanklines", true) == true)
return newline;
return noline;