1 | #include "EXTERN.h" |
1 | #include "EXTERN.h" |
2 | #include "perl.h" |
2 | #include "perl.h" |
3 | #include "XSUB.h" |
3 | #include "XSUB.h" |
4 | |
4 | |
5 | #include "rsync.h" |
5 | #include "librsync.h" |
6 | |
6 | |
7 | /* try to be compatible with older perls */ |
7 | /* try to be compatible with older perls */ |
8 | /* SvPV_nolen() macro first defined in 5.005_55 */ |
8 | /* SvPV_nolen() macro first defined in 5.005_55 */ |
9 | /* this is slow, not threadsafe, but works */ |
9 | /* this is slow, not threadsafe, but works */ |
10 | #include "patchlevel.h" |
10 | #include "patchlevel.h" |
… | |
… | |
82 | * \param buf On input, a buffer of at least \p *len bytes. May be |
82 | * \param buf On input, a buffer of at least \p *len bytes. May be |
83 | * updated to point to a buffer allocated by the callback if it |
83 | * updated to point to a buffer allocated by the callback if it |
84 | * prefers. |
84 | * prefers. |
85 | */ |
85 | */ |
86 | static rs_result |
86 | static rs_result |
87 | copy_cb (void *cb, off_t pos, size_t *len, void **buf) |
87 | copy_cb (void *cb, rs_long_t pos, size_t *len, void **buf) |
88 | { |
88 | { |
89 | dSP; |
89 | dSP; |
90 | SV *rbuf; |
90 | SV *rbuf; |
91 | |
91 | |
92 | PUSHMARK(SP); EXTEND(SP,2); |
92 | PUSHMARK(SP); EXTEND(SP,2); |