Portability: Updated to make main re-entrant()

- New INSTALL instructions to emscripten, and AUTHORS for contribution.
This commit is contained in:
Mark Scannell 2018-01-31 19:45:07 -05:00 committed by Paul Beckingham
parent cae3f06b7d
commit 7af6db4c17
112 changed files with 960 additions and 1147 deletions

View file

@ -29,8 +29,6 @@
#include <Context.h>
#include <util.h>
extern Context context;
////////////////////////////////////////////////////////////////////////////////
CmdLogo::CmdLogo ()
{
@ -83,10 +81,10 @@ int CmdLogo::execute (std::string& output)
""
};
if (! context.color ())
if (! Context::getContext ().color ())
throw std::string ("The logo command requires that color support is enabled.");
std::string indent (context.config.getInteger ("indent.report"), ' ');
std::string indent (Context::getContext ().config.getInteger ("indent.report"), ' ');
output += optionalBlankLine ();
for (int line = 0; data[line][0]; ++line)