File: main.c

package info (click to toggle)
mle 1.7.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,108 kB
  • sloc: ansic: 13,335; sh: 728; php: 228; makefile: 83
file content (20 lines) | stat: -rw-r--r-- 433 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <stdio.h>
#include <stdlib.h>
#include <locale.h>
#include <unistd.h>
#include <uthash.h>
#include "termbox2.h"
#include "mlbuf.h"
#include "mle.h"

editor_t _editor;

int main(int argc, char **argv) {
    memset(&_editor, 0, sizeof(editor_t));
    setlocale(LC_ALL, "");
    if (editor_init(&_editor, argc, argv) == MLE_OK) {
        editor_run(&_editor);
    }
    editor_deinit(&_editor);
    return _editor.exit_code;
}