Data Structures | Macros | Functions | Variables
main.c File Reference
#include <assert.h>
#include <stdint.h>
#include <string.h>
#include <stdbool.h>
#include <msgpack.h>
#include "nvim/ascii.h"
#include "nvim/vim.h"
#include "nvim/main.h"
#include "nvim/buffer.h"
#include "nvim/charset.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/mark.h"
#include "nvim/mbyte.h"
#include "nvim/memline.h"
#include "nvim/message.h"
#include "nvim/misc1.h"
#include "nvim/garray.h"
#include "nvim/log.h"
#include "nvim/memory.h"
#include "nvim/move.h"
#include "nvim/mouse.h"
#include "nvim/normal.h"
#include "nvim/ops.h"
#include "nvim/option.h"
#include "nvim/os_unix.h"
#include "nvim/os/os_defs.h"
#include "nvim/path.h"
#include "nvim/profile.h"
#include "nvim/quickfix.h"
#include "nvim/screen.h"
#include "nvim/state.h"
#include "nvim/strings.h"
#include "nvim/syntax.h"
#include "nvim/ui.h"
#include "nvim/version.h"
#include "nvim/window.h"
#include "nvim/shada.h"
#include "nvim/os/input.h"
#include "nvim/os/os.h"
#include "nvim/os/time.h"
#include "nvim/os/fileio.h"
#include "nvim/event/loop.h"
#include "nvim/os/signal.h"
#include "nvim/event/process.h"
#include "nvim/msgpack_rpc/helpers.h"
#include "nvim/msgpack_rpc/server.h"
#include "nvim/msgpack_rpc/channel.h"
#include "nvim/api/ui.h"
#include "nvim/api/private/defs.h"
#include "nvim/api/private/helpers.h"
#include "nvim/api/private/handle.h"
#include "nvim/api/private/dispatch.h"
#include "nvim/os/pty_process_unix.h"
#include "nvim/api/vim.h"

Data Structures

struct  mparm_T
 

Macros

#define EXTERN
 
#define MAX_ARG_CMDS   10
 
#define WIN_HOR   1
 
#define WIN_VER   2
 
#define WIN_TABS   3
 
#define EDIT_NONE   0 /* no edit type yet */
 
#define EDIT_FILE   1 /* file name argument[s] given, use argument list */
 
#define EDIT_STDIN   2 /* read file from stdin */
 
#define EDIT_TAG   3 /* tag name argument given, use tagname */
 
#define EDIT_QF   4 /* start in quickfix mode */
 
#define PROTO   "term://"
 

Functions

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

Variables

Loop main_loop
 

Macro Definition Documentation

#define EDIT_FILE   1 /* file name argument[s] given, use argument list */
#define EDIT_NONE   0 /* no edit type yet */
#define EDIT_QF   4 /* start in quickfix mode */
#define EDIT_STDIN   2 /* read file from stdin */
#define EDIT_TAG   3 /* tag name argument given, use tagname */
#define EXTERN
#define MAX_ARG_CMDS   10
#define PROTO   "term://"
#define WIN_HOR   1
#define WIN_TABS   3
#define WIN_VER   2

Function Documentation

void early_init ( void  )

Performs early initialization.

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

void event_init ( void  )
bool event_teardown ( void  )
Returns
false if main_loop could not be closed gracefully
void getout ( int  exitval)

Exit properly.

int main ( int  argc,
char **  argv 
)

Variable Documentation

Loop main_loop