X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=visor;a=blobdiff_plain;f=libvisor%2Fsrc%2Fvimpl.h;h=c7b8ab4dec54f7816552475fdab2b86bb39c5a54;hp=b2d978f0784b5bb955bbae098d7f8b3854beaba8;hb=a3d913263bd55389a60c8db96d1ea1fc11acf178;hpb=4f957b16f77eb7761afd9e0b9064c7f08deb45be diff --git a/libvisor/src/vimpl.h b/libvisor/src/vimpl.h index b2d978f..c7b8ab4 100644 --- a/libvisor/src/vimpl.h +++ b/libvisor/src/vimpl.h @@ -1,3 +1,20 @@ +/* +visor - lightweight system-independent embeddable text editor framework +Copyright (C) 2019 John Tsiombikas + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Lesser General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Lesser General Public License for more details. + +You should have received a copy of the GNU Lesser General Public License +along with this program. If not, see . +*/ #ifndef VIMPL_H_ #define VIMPL_H_ @@ -19,8 +36,11 @@ struct vi_buffer { vi_addr cursor, view_start; int view_xscroll; + vi_file *fp; + int file_mapped; + char *orig; - long orig_size; + unsigned long orig_size; char *add; int add_size, add_max; @@ -28,4 +48,6 @@ struct vi_buffer { int num_spans, max_spans; }; +enum { SPAN_ORIG, SPAN_ADD }; + #endif /* VIMPL_H_ */