mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 05:28:33 +00:00

Here's the list of squashed commits (for more info, see PR #378). - Define guicolor_T as a typedef in syntax.h - Move a big chunk of code from structs.h to buffer_defs.h - Move aco_save_T from structs.h to fileio.h - Move option_table_T from structs.h to hardcopy.h Aditionally: - Move the printer_opts global to hardcopy.c - Delete structs.h. Include buffer_defs.h where structs.h was included before. - Add header guards to option_defs.h - Put mark types and constants in new mark_defs.h - Move undo structs to undo_defs.h - Move memfile structs to new memfile_defs.h - Move expand_T and cmdmod_T to ex_cmds_defs.h - Move memline_T to memline_defs.h - Move many defs and types to ex_eval.h - Move syntax related types to syntax_defs.h - Move struct memfile to memfile_defs.h - struct buffblock and struct buffheader moved back to buffer_defs.h - Move some datatypes to hashtab.h and eval_defs.h - Move the buffer_defs.h include and TODOs for remaining unrelated types in buffer_defs.h
30 lines
931 B
C
30 lines
931 B
C
#ifndef NEOVIM_MARK_DEFS_H
|
|
#define NEOVIM_MARK_DEFS_H
|
|
|
|
#include "pos.h"
|
|
|
|
/*
|
|
* marks: positions in a file
|
|
* (a normal mark is a lnum/col pair, the same as a file position)
|
|
*/
|
|
|
|
/* (Note: for EBCDIC there are more than 26, because there are gaps in the
|
|
* alphabet coding. To minimize changes to the code, I decided to just
|
|
* increase the number of possible marks. */
|
|
#define NMARKS ('z' - 'a' + 1) /* max. # of named marks */
|
|
#define JUMPLISTSIZE 100 /* max. # of marks in jump list */
|
|
#define TAGSTACKSIZE 20 /* max. # of tags in tag stack */
|
|
|
|
typedef struct filemark {
|
|
pos_T mark; /* cursor position */
|
|
int fnum; /* file number */
|
|
} fmark_T;
|
|
|
|
/* Xtended file mark: also has a file name */
|
|
typedef struct xfilemark {
|
|
fmark_T fmark;
|
|
char_u *fname; /* file name, used when fnum == 0 */
|
|
} xfmark_T;
|
|
|
|
#endif // NEOVIM_MARK_DEFS_H
|