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 3d7c681ed0
commit c7f2739dda
110 changed files with 942 additions and 1125 deletions

View file

@ -25,13 +25,9 @@
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
#include <iostream> // TODO Remove.
#include <test.h>
#include <DOM.h>
#include <Variant.h>
#include <Context.h>
Context context;
////////////////////////////////////////////////////////////////////////////////
bool providerString (const std::string& path, Variant& var)
@ -72,7 +68,7 @@ int main (int, char**)
dom.addSource ("name.next", &providerString);
dom.addSource ("name.size", &providerString);
dom.addSource ("foo", &providerString);
std::cout << dom.dump () << '\n';
t.diag (dom.dump ());
t.is (dom.count (), 4, "DOM now contains 4 nodes");
t.ok (dom.valid ("name"), "DOM 'name' valid");