swipl-biocham.c 374 Bytes
Newer Older
Thierry Martinez's avatar
Thierry Martinez committed
1 2 3
#include <stdio.h>
#include <SWI-Prolog.h>
#include <graphviz_swiprolog.h>
Thierry Martinez's avatar
Thierry Martinez committed
4
#include <sbml_swiprolog.h>
5
#include <roots.h>
Thierry Martinez's avatar
Thierry Martinez committed
6 7 8 9 10

int
main(int argc, char **argv)
{
    install_graphviz_swiprolog();
Thierry Martinez's avatar
Thierry Martinez committed
11
    install_sbml_swiprolog();
12
    install_roots();
Thierry Martinez's avatar
Thierry Martinez committed
13 14 15 16 17 18 19 20 21

    if (!PL_initialise(argc, argv)) {
        PL_halt(1);
    }

    PL_install_readline();

    PL_halt(PL_toplevel() ? 0 : 1);
}