line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#define PERL_constant_NOTFOUND 1 |
2
|
|
|
|
|
|
|
#define PERL_constant_NOTDEF 2 |
3
|
|
|
|
|
|
|
#define PERL_constant_ISIV 3 |
4
|
|
|
|
|
|
|
#define PERL_constant_ISNO 4 |
5
|
|
|
|
|
|
|
#define PERL_constant_ISNV 5 |
6
|
|
|
|
|
|
|
#define PERL_constant_ISPV 6 |
7
|
|
|
|
|
|
|
#define PERL_constant_ISPVN 7 |
8
|
|
|
|
|
|
|
#define PERL_constant_ISSV 8 |
9
|
|
|
|
|
|
|
#define PERL_constant_ISUNDEF 9 |
10
|
|
|
|
|
|
|
#define PERL_constant_ISUV 10 |
11
|
|
|
|
|
|
|
#define PERL_constant_ISYES 11 |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
#ifndef NVTYPE |
14
|
|
|
|
|
|
|
typedef double NV; /* 5.6 and later define NVTYPE, and typedef NV to it. */ |
15
|
|
|
|
|
|
|
#endif |
16
|
|
|
|
|
|
|
#ifndef aTHX_ |
17
|
|
|
|
|
|
|
#define aTHX_ /* 5.6 or later define this for threading support. */ |
18
|
|
|
|
|
|
|
#endif |
19
|
|
|
|
|
|
|
#ifndef pTHX_ |
20
|
|
|
|
|
|
|
#define pTHX_ /* 5.6 or later define this for threading support. */ |
21
|
|
|
|
|
|
|
#endif |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
static int |
24
|
8
|
|
|
|
|
|
_stash_progress_constant (pTHX_ const char *name, STRLEN len, IV *iv_return) { |
25
|
|
|
|
|
|
|
/* Initially switch on the length of the name. */ |
26
|
|
|
|
|
|
|
/* When generated this function returned values for the list of names given |
27
|
|
|
|
|
|
|
in this section of perl code. Rather than manually editing these functions |
28
|
|
|
|
|
|
|
to add or remove constants, which would result in this comment and section |
29
|
|
|
|
|
|
|
of code becoming inaccurate, we recommend that you edit this section of |
30
|
|
|
|
|
|
|
code, and use it to regenerate a new set of constant functions which you |
31
|
|
|
|
|
|
|
then use to replace the originals. |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
Regenerate these constant functions by feeding this entire source file to |
34
|
|
|
|
|
|
|
perl -x |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
#!/usr/local/bin/perl -w |
37
|
|
|
|
|
|
|
use ExtUtils::Constant qw (constant_types C_constant XS_constant); |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
my $types = {map {($_, 1)} qw(IV)}; |
40
|
|
|
|
|
|
|
my @names = (qw(ANALYZE_INDEX ANALYZE_MODIFIED ANALYZE_UNTRACKED |
41
|
|
|
|
|
|
|
CHECKOUT_MODIFIED CHECKOUT_UNTRACKED DONE LOADING_STASH NONE)); |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
print constant_types(), "\n"; # macro defs |
44
|
|
|
|
|
|
|
foreach (C_constant ("Git::Raw::Stash::Progress", '_stash_progress_constant', 'IV', $types, undef, 3, @names) ) { |
45
|
|
|
|
|
|
|
print $_, "\n"; # C constant subs |
46
|
|
|
|
|
|
|
} |
47
|
|
|
|
|
|
|
print "\n#### XS Section:\n"; |
48
|
|
|
|
|
|
|
print XS_constant ("Git::Raw::Stash::Progress", $types); |
49
|
|
|
|
|
|
|
__END__ |