mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-27 19:17:19 +02:00
Portability: Updated to make main re-entrant()
- New INSTALL instructions to emscripten, and AUTHORS for contribution.
This commit is contained in:
parent
cae3f06b7d
commit
7af6db4c17
112 changed files with 960 additions and 1147 deletions
|
@ -30,13 +30,14 @@
|
|||
#include <cstring>
|
||||
#include <Context.h>
|
||||
|
||||
Context context;
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
int main (int argc, const char** argv)
|
||||
{
|
||||
int status {0};
|
||||
|
||||
Context globalContext;
|
||||
Context::setContext (&globalContext);
|
||||
|
||||
// Lightweight version checking that doesn't require initialization or any I/O.
|
||||
if (argc == 2 && !strcmp (argv[1], "--version"))
|
||||
{
|
||||
|
@ -46,9 +47,9 @@ int main (int argc, const char** argv)
|
|||
{
|
||||
try
|
||||
{
|
||||
status = context.initialize (argc, argv);
|
||||
status = Context::getContext ().initialize (argc, argv);
|
||||
if (status == 0)
|
||||
status = context.run ();
|
||||
status = Context::getContext ().run ();
|
||||
}
|
||||
|
||||
catch (const std::string& error)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue