blob: ed0bfdd65c0c7285eebdfd5c163f769db7bb66e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#ifndef SLIDING_WINDOW_H_
#define SLIDING_WINDOW_H_
#include "strbuf.h"
struct sliding_view {
struct line_buffer *file;
off_t off;
size_t width;
struct strbuf buf;
};
#define SLIDING_VIEW_INIT(input) { (input), 0, 0, STRBUF_INIT }
extern int move_window(struct sliding_view *view, off_t off, size_t width);
#endif
|