Subversion Repositories Filer-Free

Rev

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

Rev Author Line No. Line
6 gdshaw@RISCPKG.ORG 1
// This file is part of the free Filer module for RISC OS.
2
// Copyright  2007 Graham Shaw.
3
// Redistribution and modification are permitted under the terms of the
4
// GNU General Public License (version 2 or any later version).
5
 
64 gdshaw@RISCPKG.ORG 6
#include <new>
7
 
6 gdshaw@RISCPKG.ORG 8
#include "header.h"
7 gdshaw@RISCPKG.ORG 9
#include "filer_application.h"
26 gdshaw@RISCPKG.ORG 10
#include "main.h"
6 gdshaw@RISCPKG.ORG 11
 
39 gdshaw@RISCPKG.ORG 12
filer_options& get_default_options()
13
{
14
        static filer_options default_options;
15
        return default_options;
16
}
26 gdshaw@RISCPKG.ORG 17
 
9 gdshaw@RISCPKG.ORG 18
filer_application* app=0;
6 gdshaw@RISCPKG.ORG 19
 
63 gdshaw@RISCPKG.ORG 20
int pollword=0;
21
 
22
pathname_table pathnames(&pollword);
23
 
6 gdshaw@RISCPKG.ORG 24
extern "C"
25
int main(int argc, char *argv[])
26
{
27
        if (!app)
28
        {
64 gdshaw@RISCPKG.ORG 29
                app=new(std::nothrow) filer_application;
63 gdshaw@RISCPKG.ORG 30
                app->run(&pollword);
6 gdshaw@RISCPKG.ORG 31
                delete app;
32
                app=0;
33
        }
34
        return 0;
35
}