- Implemented structure of main loop.
This commit is contained in:
Paul Beckingham 2014-06-19 17:18:59 -04:00
parent 1647ca6b4d
commit aacae1b1c6

View file

@ -29,6 +29,16 @@
#include <cstring>
#include <i18n.h>
////////////////////////////////////////////////////////////////////////////////
static int commandLoop ()
{
// TODO Display prompt
// TODO Wait for input
// TODO Dispatch command
return 0;
}
////////////////////////////////////////////////////////////////////////////////
int main (int argc, const char** argv)
{
@ -43,7 +53,8 @@ int main (int argc, const char** argv)
{
try
{
// Umm...
while ((status = commandLoop ()) == 0)
;
}
catch (const std::string& error)