comparison src/structs.h @ 18199:e2be5a6485f5 v8.1.2094

patch 8.1.2094: the fileio.c file is too big Commit: https://github.com/vim/vim/commit/473952e85286eb9c6098801f1819981ba61ad153 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Sep 28 16:30:04 2019 +0200 patch 8.1.2094: the fileio.c file is too big Problem: The fileio.c file is too big. Solution: Move buf_write() to bufwrite.c. (Yegappan Lakshmanan, closes #4990)
author Bram Moolenaar <Bram@vim.org>
date Sat, 28 Sep 2019 16:45:04 +0200
parents 4ac8161e92e0
children e0ec4cd7a865
comparison
equal deleted inserted replaced
18198:3ebea66ebaff 18199:e2be5a6485f5
3880 char_u *pat; // the pattern (in allocated memory) or NULL 3880 char_u *pat; // the pattern (in allocated memory) or NULL
3881 int magic; // magicness of the pattern 3881 int magic; // magicness of the pattern
3882 int no_scs; // no smartcase for this pattern 3882 int no_scs; // no smartcase for this pattern
3883 soffset_T off; 3883 soffset_T off;
3884 } spat_T; 3884 } spat_T;
3885
3886 #define WRITEBUFSIZE 8192 // size of normal write buffer
3887
3888 #define FIO_LATIN1 0x01 // convert Latin1
3889 #define FIO_UTF8 0x02 // convert UTF-8
3890 #define FIO_UCS2 0x04 // convert UCS-2
3891 #define FIO_UCS4 0x08 // convert UCS-4
3892 #define FIO_UTF16 0x10 // convert UTF-16
3893 #ifdef MSWIN
3894 # define FIO_CODEPAGE 0x20 // convert MS-Windows codepage
3895 # define FIO_PUT_CP(x) (((x) & 0xffff) << 16) // put codepage in top word
3896 # define FIO_GET_CP(x) (((x)>>16) & 0xffff) // get codepage from top word
3897 #endif
3898 #ifdef MACOS_CONVERT
3899 # define FIO_MACROMAN 0x20 // convert MacRoman
3900 #endif
3901 #define FIO_ENDIAN_L 0x80 // little endian
3902 #define FIO_ENCRYPTED 0x1000 // encrypt written bytes
3903 #define FIO_NOCONVERT 0x2000 // skip encoding conversion
3904 #define FIO_UCSBOM 0x4000 // check for BOM at start of file
3905 #define FIO_ALL -1 // allow all formats
3906
3907 // When converting, a read() or write() may leave some bytes to be converted
3908 // for the next call. The value is guessed...
3909 #define CONV_RESTLEN 30
3910
3911 // We have to guess how much a sequence of bytes may expand when converting
3912 // with iconv() to be able to allocate a buffer.
3913 #define ICONV_MULT 8