robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
359459dec6
master
1#pragma once 2 3#include <stdbool.h> 4 5#include "nvim/types_defs.h" 6 7// Maximum number of commands from + or -c arguments. 8#define MAX_ARG_CMDS 10 9 10extern Loop main_loop ; 11 12// Struct for various parameters passed between main() and other functions. 13typedef struct { 14int argc ; 15char ** argv ; 16 17char * use_vimrc ;// vimrc from -u argument 18bool clean ;// --clean argument 19 20int n_commands ;// no. of commands from + or -c 21char * commands [MAX_ARG_CMDS ];// commands from + or -c arg 22char cmds_tofree [MAX_ARG_CMDS ];// commands that need free() 23int n_pre_commands ;// no. of commands from --cmd 24char * pre_commands [MAX_ARG_CMDS ];// commands from --cmd argument 25char * luaf ;// Lua script filename from "-l" 26int lua_arg0 ;// Lua script args start index. 27 28int edit_type ;// type of editing to do 29char * tagname ;// tag from -t argument 30char * use_ef ;// 'errorfile' from -q argument 31 32bool exmode ;// "-e"/"-E": Ex mode 33bool input_istext ;// stdin is text, not executable (-E/-Es) 34 35int no_swap_file ;// "-n" argument used 36int use_debug_break_level ; 37int window_count ;// number of windows to use 38int window_layout ;// 0, WIN_HOR, WIN_VER or WIN_TABS 39 40int diff_mode ;// start with 'diff' set 41 42char * listen_addr ;// --listen {address} 43int remote ;// --remote-[subcmd] {file1} {file2} 44char * server_addr ;// --server {address} 45char * scriptin ;// -s {filename} 46char * scriptout ;// -w/-W {filename} 47bool scriptout_append ;// append (-w) instead of overwrite (-W) 48bool had_stdin_file ;// explicit - as a file to edit 49}mparm_T ; 50 51#if defined(MSWIN )&& !defined(ENABLE_ASAN_UBSAN ) 52# define __asan_default_options vim__asan_default_options 53# define __ubsan_default_options vim__ubsan_default_options 54#endif 55 56#include "main.h.generated.h"