| 1 |
|
| MODULE = Git::Raw PACKAGE = Git::Raw::PathSpec::MatchList |
| 2 |
|
| |
| 3 |
|
| SV * |
| 4 |
|
| count(self) |
| 5 |
|
| PathSpec_MatchList self; |
| 6 |
|
| |
| 7 |
|
| CODE: |
| 8 |
10 |
| RETVAL = newSVuv(git_pathspec_match_list_entrycount(self)); |
| 9 |
|
| |
| 10 |
|
| OUTPUT: RETVAL |
| 11 |
|
| |
| 12 |
|
| void |
| 13 |
|
| entries(self) |
| 14 |
|
| PathSpec_MatchList self; |
| 15 |
|
| |
| 16 |
|
| PREINIT: |
| 17 |
|
| size_t i, count; |
| 18 |
|
| |
| 19 |
|
| PPCODE: |
| 20 |
5 |
| count = git_pathspec_match_list_entrycount(self); |
| 21 |
|
| |
| 22 |
17 |
▶ | for (i = 0; i < count; ++i) { |
Branch: 1 branch
| Branch | True | False | Total |
| for (i = 0; i < count; ++i) { |
12 |
5 |
17 |
|
| 23 |
12 |
| SV *path = newSVpv(git_pathspec_match_list_entry(self, i), 0); |
| 24 |
12 |
▶ | mXPUSHs(path); |
Branch: 1 branch
| Branch | True | False | Total |
| mXPUSHs(path); |
0 |
12 |
12 |
|
| 25 |
|
| } |
| 26 |
|
| |
| 27 |
5 |
| XSRETURN(count); |
| 28 |
|
| |
| 29 |
|
| SV * |
| 30 |
|
| failed_count(self) |
| 31 |
|
| PathSpec_MatchList self; |
| 32 |
|
| |
| 33 |
|
| CODE: |
| 34 |
3 |
| RETVAL = newSVuv(git_pathspec_match_list_failed_entrycount(self)); |
| 35 |
|
| |
| 36 |
|
| OUTPUT: RETVAL |
| 37 |
|
| |
| 38 |
|
| void |
| 39 |
|
| failed_entries(self) |
| 40 |
|
| PathSpec_MatchList self; |
| 41 |
|
| |
| 42 |
|
| PREINIT: |
| 43 |
|
| size_t i, count; |
| 44 |
|
| |
| 45 |
|
| PPCODE: |
| 46 |
1 |
| count = git_pathspec_match_list_failed_entrycount(self); |
| 47 |
|
| |
| 48 |
2 |
▶ | for (i = 0; i < count; ++i) { |
Branch: 1 branch
| Branch | True | False | Total |
| for (i = 0; i < count; ++i) { |
1 |
1 |
2 |
|
| 49 |
1 |
| SV *path = newSVpv(git_pathspec_match_list_failed_entry(self, i), 0); |
| 50 |
1 |
▶ | mXPUSHs(path); |
Branch: 1 branch
| Branch | True | False | Total |
| mXPUSHs(path); |
0 |
1 |
1 |
|
| 51 |
|
| } |
| 52 |
|
| |
| 53 |
1 |
| XSRETURN(count); |
| 54 |
|
| |
| 55 |
|
| void |
| 56 |
|
| DESTROY(self) |
| 57 |
|
| SV *self |
| 58 |
|
| |
| 59 |
|
| PREINIT: |
| 60 |
|
| PathSpec_MatchList list; |
| 61 |
|
| |
| 62 |
|
| CODE: |
| 63 |
10 |
| list = GIT_SV_TO_PTR(PathSpec::MatchList, self); |
| 64 |
10 |
| git_pathspec_match_list_free(list); |