Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 476109fa4c
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (13 sloc) 0.376 kB
#ifndef SLIDING_WINDOW_H_
#define SLIDING_WINDOW_H_
#include "strbuf.h"
struct sliding_view {
struct line_buffer *file;
off_t off;
size_t width;
off_t max_off; /* -1 means unlimited */
struct strbuf buf;
};
#define SLIDING_VIEW_INIT(input, len) { (input), 0, 0, (len), STRBUF_INIT }
extern int move_window(struct sliding_view *view, off_t off, size_t width);
#endif
Jump to Line
Something went wrong with that request. Please try again.