Subversion Repositories Filer-Free

Rev

Rev 63 | Blame | Compare with Previous | Last modification | View Log | RSS feed

// This file is part of the free Filer module for RISC OS.
// Copyright © 2007 Graham Shaw.
// Redistribution and modification are permitted under the terms of the
// GNU General Public License (version 2 or any later version).

#include <new>

#include "header.h"
#include "filer_application.h"
#include "main.h"

filer_options& get_default_options()
{
        static filer_options default_options;
        return default_options;
}

filer_application* app=0;

int pollword=0;

pathname_table pathnames(&pollword);

extern "C"
int main(int argc, char *argv[])
{
        if (!app)
        {
                app=new(std::nothrow) filer_application;
                app->run(&pollword);
                delete app;
                app=0;
        }
        return 0;
}