repo.or.cz
/
git
/
raj.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
vcs-svn: verify that deltas consume all inline data
[git/raj.git]
/
vcs-svn
/
sliding_window.h
blob
ed0bfdd65c0c7285eebdfd5c163f769db7bb66e2
1
#ifndef SLIDING_WINDOW_H_
2
#define SLIDING_WINDOW_H_
3
4
#include
"strbuf.h"
5
6
struct
sliding_view
{
7
struct
line_buffer
*
file
;
8
off_t off
;
9
size_t
width
;
10
struct
strbuf buf
;
11
};
12
13
#define SLIDING_VIEW_INIT(input) { (input), 0, 0, STRBUF_INIT }
14
15
extern
int
move_window
(
struct
sliding_view
*
view
,
off_t off
,
size_t
width
);
16
17
#endif