fileio.h
Go to the documentation of this file.
1 #ifndef NVIM_FILEIO_H
2 #define NVIM_FILEIO_H
3 
4 #include "nvim/buffer_defs.h"
5 #include "nvim/os/os.h"
6 
7 // Values for readfile() flags
8 #define READ_NEW 0x01 // read a file into a new buffer
9 #define READ_FILTER 0x02 // read filter output
10 #define READ_STDIN 0x04 // read from stdin
11 #define READ_BUFFER 0x08 // read from curbuf (converting stdin)
12 #define READ_DUMMY 0x10 // reading into a dummy buffer
13 #define READ_KEEP_UNDO 0x20 // keep undo info
14 #define READ_FIFO 0x40 // read from fifo or socket
15 
16 #define READ_STRING(x, y) (char_u *)read_string((x), (size_t)(y))
17 
18 /*
19  * Struct to save values in before executing autocommands for a buffer that is
20  * not the current buffer.
21  */
22 typedef struct {
30 } aco_save_T;
31 
32 #ifdef INCLUDE_GENERATED_DECLARATIONS
33 // Events for autocommands
34 # include "auevents_enum.generated.h"
35 # include "fileio.h.generated.h"
36 #endif
37 #endif // NVIM_FILEIO_H
int use_aucmd_win
using aucmd_win
Definition: fileio.h:24
buf_T * save_curbuf
saved curbuf
Definition: fileio.h:23
Definition: buffer_defs.h:469
Definition: buffer_defs.h:13
Definition: buffer_defs.h:1002
Definition: fileio.h:22
unsigned char char_u
Definition: types.h:11
win_T * save_curwin
saved curwin
Definition: fileio.h:25
char_u * globaldir
saved value of globaldir
Definition: fileio.h:29
win_T * new_curwin
new curwin
Definition: fileio.h:27
win_T * save_prevwin
saved prevwin
Definition: fileio.h:26
bufref_T new_curbuf
new curbuf
Definition: fileio.h:28