Macros | Functions | Variables
main.c File Reference
#include <assert.h>
#include <msgpack.h>
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
#include "nvim/ascii.h"
#include "nvim/aucmd.h"
#include "nvim/buffer.h"
#include "nvim/channel.h"
#include "nvim/charset.h"
#include "nvim/decoration.h"
#include "nvim/diff.h"
#include "nvim/eval.h"
#include "nvim/ex_cmds.h"
#include "nvim/ex_cmds2.h"
#include "nvim/ex_docmd.h"
#include "nvim/fileio.h"
#include "nvim/fold.h"
#include "nvim/getchar.h"
#include "nvim/hashtab.h"
#include "nvim/highlight.h"
#include "nvim/iconv.h"
#include "nvim/if_cscope.h"
#include "nvim/lua/executor.h"
#include "nvim/main.h"
#include "nvim/vim.h"
#include "nvim/garray.h"
#include "nvim/log.h"
#include "nvim/mark.h"
#include "nvim/mbyte.h"
#include "nvim/memline.h"
#include "nvim/memory.h"
#include "nvim/message.h"
#include "nvim/misc1.h"
#include "nvim/mouse.h"
#include "nvim/move.h"
#include "nvim/normal.h"
#include "nvim/ops.h"
#include "nvim/option.h"
#include "nvim/os/fileio.h"
#include "nvim/os/input.h"
#include "nvim/os/os.h"
#include "nvim/os/os_defs.h"
#include "nvim/os/time.h"
#include "nvim/os_unix.h"
#include "nvim/path.h"
#include "nvim/popupmnu.h"
#include "nvim/profile.h"
#include "nvim/quickfix.h"
#include "nvim/screen.h"
#include "nvim/shada.h"
#include "nvim/sign.h"
#include "nvim/state.h"
#include "nvim/strings.h"
#include "nvim/syntax.h"
#include "nvim/ui.h"
#include "nvim/ui_compositor.h"
#include "nvim/version.h"
#include "nvim/window.h"
#include "nvim/api/private/defs.h"
#include "nvim/api/private/dispatch.h"
#include "nvim/api/private/helpers.h"
#include "nvim/api/ui.h"
#include "nvim/event/loop.h"
#include "nvim/event/process.h"
#include "nvim/msgpack_rpc/channel.h"
#include "nvim/msgpack_rpc/helpers.h"
#include "nvim/msgpack_rpc/server.h"
#include "nvim/os/signal.h"
#include "nvim/os/pty_process_unix.h"
#include "nvim/api/extmark.h"

Macros

#define EXTERN
 
#define WIN_HOR   1
 
#define WIN_VER   2
 
#define WIN_TABS   3
 
#define EDIT_NONE   0
 
#define EDIT_FILE   1
 
#define EDIT_STDIN   2
 
#define EDIT_TAG   3
 
#define EDIT_QF   4
 

Functions

void event_init (void)
 
bool event_teardown (void)
 
void early_init (mparm_T *paramp)
 
int main (int argc, char **argv)
 
void os_exit (int r) FUNC_ATTR_NORETURN
 
void getout (int exitval) FUNC_ATTR_NORETURN
 Exit properly. More...
 

Variables

Loop main_loop
 

Macro Definition Documentation

◆ EDIT_FILE

#define EDIT_FILE   1

◆ EDIT_NONE

#define EDIT_NONE   0

◆ EDIT_QF

#define EDIT_QF   4

◆ EDIT_STDIN

#define EDIT_STDIN   2

◆ EDIT_TAG

#define EDIT_TAG   3

◆ EXTERN

#define EXTERN

◆ WIN_HOR

#define WIN_HOR   1

◆ WIN_TABS

#define WIN_TABS   3

◆ WIN_VER

#define WIN_VER   2

Function Documentation

◆ early_init()

void early_init ( mparm_T paramp)

Performs early initialization.

Needed for unit tests. Must be called after time_init().

◆ event_init()

void event_init ( void  )

◆ event_teardown()

bool event_teardown ( void  )
Returns
false if main_loop could not be closed gracefully

◆ getout()

void getout ( int  exitval)

Exit properly.

◆ main()

int main ( int  argc,
char **  argv 
)

◆ os_exit()

void os_exit ( int  r)

Variable Documentation

◆ main_loop

Loop main_loop