projects
/
visor
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
started the implementation
[visor]
/
libvisor
/
src
/
vimpl.h
1
#ifndef VIMPL_H_
2
#define VIMPL_H_
3
4
#include "visor.h"
5
6
struct visor {
7
struct vi_fileops fop;
8
struct vi_buffer *buflist; /* circular linked list of buffers cur first */
9
struct vi_alloc mm;
10
struct vi_ttyops tty;
11
void *tty_cls;
12
};
13
14
struct vi_buffer {
15
struct visor *vi;
16
char *path;
17
struct vi_buffer *next, *prev;
18
19
vi_addr cursor, view_start;
20
int view_xscroll;
21
22
char *orig;
23
long orig_size;
24
char *add;
25
int add_size, add_max;
26
27
struct vi_span *spans;
28
int num_spans, max_spans;
29
};
30
31
#endif /* VIMPL_H_ */