1 #ifndef SLIDING_WINDOW_H_
2 #define SLIDING_WINDOW_H_
7 struct line_buffer
*file
;
10 off_t max_off
; /* -1 means unlimited */
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
);