msysGit-based Git for Windows 1.x was superseded by Git for Windows 2.x
[git/mingw/4msysgit.git] / vcs-svn / sliding_window.h
blobb43a825cbabe92b8b9da7d1ff2856763fe26fc29
1 #ifndef SLIDING_WINDOW_H_
2 #define SLIDING_WINDOW_H_
4 #include "strbuf.h"
6 struct sliding_view {
7 struct line_buffer *file;
8 off_t off;
9 size_t width;
10 off_t max_off; /* -1 means unlimited */
11 struct strbuf buf;
14 #define SLIDING_VIEW_INIT(input, len) { (input), 0, 0, (len), STRBUF_INIT }
16 extern int move_window(struct sliding_view *view, off_t off, size_t width);
18 #endif