comparison src/structs.h @ 28158:e1d1fa6ba1ed v8.2.4603

patch 8.2.4603: sourcing buffer lines is too complicated Commit: https://github.com/vim/vim/commit/85b43c6cb7d56919e245622f4e42db6d8bee4194 Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Mon Mar 21 19:45:17 2022 +0000 patch 8.2.4603: sourcing buffer lines is too complicated Problem: Sourcing buffer lines is too complicated. Solution: Simplify the code. Make it possible to source Vim9 script lines. (Yegappan Lakshmanan, closes #9974)
author Bram Moolenaar <Bram@vim.org>
date Mon, 21 Mar 2022 21:00:04 +0100
parents ae38d2e81fca
children 89c181c99e23
comparison
equal deleted inserted replaced
28157:81034dff92a4 28158:e1d1fa6ba1ed
4424 typedef struct { 4424 typedef struct {
4425 FILE *fp; // opened file for sourcing 4425 FILE *fp; // opened file for sourcing
4426 char_u *nextline; // if not NULL: line that was read ahead 4426 char_u *nextline; // if not NULL: line that was read ahead
4427 linenr_T sourcing_lnum; // line number of the source file 4427 linenr_T sourcing_lnum; // line number of the source file
4428 int finished; // ":finish" used 4428 int finished; // ":finish" used
4429 int source_from_buf;// TRUE if sourcing from current buffer
4430 int buf_lnum; // line number in the current buffer
4431 garray_T buflines; // lines in the current buffer
4429 #ifdef USE_CRNL 4432 #ifdef USE_CRNL
4430 int fileformat; // EOL_UNKNOWN, EOL_UNIX or EOL_DOS 4433 int fileformat; // EOL_UNKNOWN, EOL_UNIX or EOL_DOS
4431 int error; // TRUE if LF found after CR-LF 4434 int error; // TRUE if LF found after CR-LF
4432 #endif 4435 #endif
4433 #ifdef FEAT_EVAL 4436 #ifdef FEAT_EVAL