ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/File-Rdiff/Rdiff.xs
(Generate patch)

Comparing File-Rdiff/Rdiff.xs (file contents):
Revision 1.2 by root, Fri Mar 22 15:53:12 2002 UTC vs.
Revision 1.3 by root, Thu Jul 24 21:05:17 2008 UTC

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 */
86static rs_result 86static rs_result
87copy_cb (void *cb, off_t pos, size_t *len, void **buf) 87copy_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);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines