Lines 1-45
Link Here
|
1 |
--- FileList/FileList.xs.orig Thu Jul 24 04:33:37 2003 |
|
|
2 |
+++ FileList/FileList.xs Mon Jan 12 10:27:51 2004 |
3 |
@@ -93,8 +93,9 @@ |
4 |
PROTOTYPES: DISABLE |
5 |
|
6 |
File::RsyncP::FileList |
7 |
-new(packname = "File::RsyncP::FileList", SV* opts = NULL) |
8 |
+new(packname = "File::RsyncP::FileList", opts = NULL) |
9 |
char *packname |
10 |
+ SV* opts |
11 |
CODE: |
12 |
{ |
13 |
RETVAL = flist_new(); |
14 |
@@ -187,14 +188,14 @@ |
15 |
if ( file->sum ) |
16 |
hv_store(rh, "sum", 3, newSVpv(file->sum, 0), 0); |
17 |
hv_store(rh, "name", 4, newSVpv(f_name(file), 0), 0); |
18 |
- hv_store(rh, "uid", 3, newSVuv(file->uid), 0); |
19 |
- hv_store(rh, "gid", 3, newSVuv(file->gid), 0); |
20 |
- hv_store(rh, "mode", 4, newSVuv(file->mode), 0); |
21 |
- hv_store(rh, "mtime", 5, newSVuv(file->modtime), 0); |
22 |
+ hv_store(rh, "uid", 3, newSViv(file->uid), 0); |
23 |
+ hv_store(rh, "gid", 3, newSViv(file->gid), 0); |
24 |
+ hv_store(rh, "mode", 4, newSViv(file->mode), 0); |
25 |
+ hv_store(rh, "mtime", 5, newSViv(file->modtime), 0); |
26 |
hv_store(rh, "size", 4, newSVnv(file->length), 0); |
27 |
hv_store(rh, "dev", 3, newSVnv(file->dev), 0); |
28 |
hv_store(rh, "inode", 5, newSVnv(file->inode), 0); |
29 |
- hv_store(rh, "rdev", 4, newSVuv(file->rdev), 0); |
30 |
+ hv_store(rh, "rdev", 4, newSViv(file->rdev), 0); |
31 |
RETVAL = newRV((SV*)rh); |
32 |
} |
33 |
OUTPUT: |
34 |
@@ -210,9 +211,10 @@ |
35 |
} |
36 |
|
37 |
void |
38 |
-encode(flist, SV* data) |
39 |
+encode(flist, data) |
40 |
INPUT: |
41 |
File::RsyncP::FileList flist |
42 |
+ SV* data |
43 |
CODE: |
44 |
{ |
45 |
struct file_struct file, *fileCopy; |