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

@ -32,8 +32,6 @@
#include <format.h>
#include <util.h>
extern Context context;
////////////////////////////////////////////////////////////////////////////////
CmdReports::CmdReports ()
{
@ -56,7 +54,7 @@ int CmdReports::execute (std::string& output)
std::vector <std::string> reports;
// Add custom reports.
for (auto& i : context.config)
for (auto& i : Context::getContext ().config)
{
if (i.first.substr (0, 7) == "report.")
{
@ -85,7 +83,7 @@ int CmdReports::execute (std::string& output)
// Compose the output.
std::stringstream out;
Table view;
view.width (context.getWidth ());
view.width (Context::getContext ().getWidth ());
view.add ("Report");
view.add ("Description");
setHeaderUnderline (view);
@ -94,7 +92,7 @@ int CmdReports::execute (std::string& output)
{
int row = view.addRow ();
view.set (row, 0, report);
view.set (row, 1, context.commands[report]->description ());
view.set (row, 1, Context::getContext ().commands[report]->description ());
}
out << optionalBlankLine ()