Portability: Updated to make main re-entrant()
- New INSTALL instructions to emscripten, and AUTHORS for contribution.
This commit is contained in:
committed by
Paul Beckingham
parent
cae3f06b7d
commit
7af6db4c17
@@ -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 ()
|
||||
|
||||
Reference in New Issue
Block a user