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

@ -30,8 +30,6 @@
#include <format.h>
#include <main.h>
extern Context context;
////////////////////////////////////////////////////////////////////////////////
CmdLog::CmdLog ()
{
@ -64,12 +62,12 @@ int CmdLog::execute (std::string& output)
if (task.has ("wait"))
throw std::string ("You cannot log waiting tasks.");
context.tdb2.add (task);
Context::getContext ().tdb2.add (task);
if (context.verbose ("project"))
context.footnote (onProjectChange (task));
if (Context::getContext ().verbose ("project"))
Context::getContext ().footnote (onProjectChange (task));
if (context.verbose ("new-uuid"))
if (Context::getContext ().verbose ("new-uuid"))
output = format ("Logged task {1}.\n", task.get ("uuid"));
return 0;