Summary.c

filter: Statementstmt 0.0% 0 / 4 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 0.0% 0 / 4 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« blib/lib/Mail/Summary.pm ↑ Summary
1 /*
2 * This file was generated automatically by ExtUtils::ParseXS version 3.63 from the
3 * contents of Summary.xs. Do not edit this file, edit Summary.xs instead.
4 *
5 * ANY CHANGES MADE HERE WILL BE LOST!
6 *
7 */
8  
9 #line 1 "Summary.xs"
10 #include "EXTERN.h"
11 #include "perl.h"
12 #include "XSUB.h"
13  
14  
15 #line 16 "Summary.c"
16 #ifndef PERL_UNUSED_VAR
17 # define PERL_UNUSED_VAR(var) if (0) var = var
18 #endif
19  
20 #ifndef dVAR
21 # define dVAR dNOOP
22 #endif
23  
24  
25 /* This stuff is not part of the API! You have been warned. */
26 #ifndef PERL_VERSION_DECIMAL
27 # define PERL_VERSION_DECIMAL(r,v,s) (r*1000000 + v*1000 + s)
28 #endif
29 #ifndef PERL_DECIMAL_VERSION
30 # define PERL_DECIMAL_VERSION \
31 PERL_VERSION_DECIMAL(PERL_REVISION,PERL_VERSION,PERL_SUBVERSION)
32 #endif
33 #ifndef PERL_VERSION_GE
34 # define PERL_VERSION_GE(r,v,s) \
35 (PERL_DECIMAL_VERSION >= PERL_VERSION_DECIMAL(r,v,s))
36 #endif
37 #ifndef PERL_VERSION_LE
38 # define PERL_VERSION_LE(r,v,s) \
39 (PERL_DECIMAL_VERSION <= PERL_VERSION_DECIMAL(r,v,s))
40 #endif
41  
42 /* XS_INTERNAL is the explicit static-linkage variant of the default
43 * XS macro.
44 *
45 * XS_EXTERNAL is the same as XS_INTERNAL except it does not include
46 * "static", ie. it exports XSUB symbols. You probably don't want that
47 * for anything but the BOOT XSUB.
48 *
49 * See XSUB.h in core!
50 */
51  
52  
53 /* TODO: This might be compatible further back than 5.10.0. */
54 #if PERL_VERSION_GE(5, 10, 0) && PERL_VERSION_LE(5, 15, 1)
55 # undef XS_EXTERNAL
56 # undef XS_INTERNAL
57 # if defined(__CYGWIN__) && defined(USE_DYNAMIC_LOADING)
58 # define XS_EXTERNAL(name) __declspec(dllexport) XSPROTO(name)
59 # define XS_INTERNAL(name) static XSPROTO(name)
60 # endif
61 # if defined(__SYMBIAN32__)
62 # define XS_EXTERNAL(name) EXPORT_C XSPROTO(name)
63 # define XS_INTERNAL(name) EXPORT_C static XSPROTO(name)
64 # endif
65 # ifndef XS_EXTERNAL
66 # if defined(HASATTRIBUTE_UNUSED) && !defined(__cplusplus)
67 # define XS_EXTERNAL(name) void name(pTHX_ CV* cv __attribute__unused__)
68 # define XS_INTERNAL(name) static void name(pTHX_ CV* cv __attribute__unused__)
69 # else
70 # ifdef __cplusplus
71 # define XS_EXTERNAL(name) extern "C" XSPROTO(name)
72 # define XS_INTERNAL(name) static XSPROTO(name)
73 # else
74 # define XS_EXTERNAL(name) XSPROTO(name)
75 # define XS_INTERNAL(name) static XSPROTO(name)
76 # endif
77 # endif
78 # endif
79 #endif
80  
81 /* perl >= 5.10.0 && perl <= 5.15.1 */
82  
83  
84 /* The XS_EXTERNAL macro is used for functions that must not be static
85 * like the boot XSUB of a module. If perl didn't have an XS_EXTERNAL
86 * macro defined, the best we can do is assume XS is the same.
87 * Dito for XS_INTERNAL.
88 */
89 #ifndef XS_EXTERNAL
90 # define XS_EXTERNAL(name) XS(name)
91 #endif
92 #ifndef XS_INTERNAL
93 # define XS_INTERNAL(name) XS(name)
94 #endif
95  
96 /* Now, finally, after all this mess, we want an ExtUtils::ParseXS
97 * internal macro that we're free to redefine for varying linkage due
98 * to the EXPORT_XSUB_SYMBOLS XS keyword. This is internal, use
99 * XS_EXTERNAL(name) or XS_INTERNAL(name) in your code if you need to!
100 */
101  
102 #undef XS_EUPXS
103 #if defined(PERL_EUPXS_ALWAYS_EXPORT)
104 # define XS_EUPXS(name) XS_EXTERNAL(name)
105 #else
106 /* default to internal */
107 # define XS_EUPXS(name) XS_INTERNAL(name)
108 #endif
109  
110 #ifndef PERL_ARGS_ASSERT_CROAK_XS_USAGE
111 #define PERL_ARGS_ASSERT_CROAK_XS_USAGE assert(cv); assert(params)
112  
113 /* prototype to pass -Wmissing-prototypes */
114 static void
115 S_croak_xs_usage(const CV *const cv, const char *const params);
116  
117 static void
118 S_croak_xs_usage(const CV *const cv, const char *const params)
119 {
120 const GV *const gv = CvGV(cv);
121  
122 PERL_ARGS_ASSERT_CROAK_XS_USAGE;
123  
124 if (gv) {
125 const char *const gvname = GvNAME(gv);
126 const HV *const stash = GvSTASH(gv);
127 const char *const hvname = stash ? HvNAME(stash) : NULL;
128  
129 if (hvname)
130 Perl_croak_nocontext("Usage: %s::%s(%s)", hvname, gvname, params);
131 else
132 Perl_croak_nocontext("Usage: %s(%s)", gvname, params);
133 } else {
134 /* Pants. I don't think that it should be possible to get here. */
135 Perl_croak_nocontext("Usage: CODE(0x%" UVxf ")(%s)", PTR2UV(cv), params);
136 }
137 }
138 #undef PERL_ARGS_ASSERT_CROAK_XS_USAGE
139  
140 #define croak_xs_usage S_croak_xs_usage
141  
142 #endif
143  
144 /* NOTE: the prototype of newXSproto() is different in versions of perls,
145 * so we define a portable version of newXSproto()
146 */
147 #ifdef newXS_flags
148 #define newXSproto_portable(name, c_impl, file, proto) newXS_flags(name, c_impl, file, proto, 0)
149 #else
150 #define newXSproto_portable(name, c_impl, file, proto) (PL_Sv=(SV*)newXS(name, c_impl, file), sv_setpv(PL_Sv, proto), (CV*)PL_Sv)
151 #endif /* !defined(newXS_flags) */
152  
153 #if PERL_VERSION_LE(5, 21, 5)
154 # define newXS_deffile(a,b) Perl_newXS(aTHX_ a,b,file)
155 #else
156 # define newXS_deffile(a,b) Perl_newXS_deffile(aTHX_ a,b)
157 #endif
158  
159 /* simple backcompat versions of the TARGx() macros with no optimisation */
160 #ifndef TARGi
161 # define TARGi(iv, do_taint) sv_setiv_mg(TARG, iv)
162 # define TARGu(uv, do_taint) sv_setuv_mg(TARG, uv)
163 # define TARGn(nv, do_taint) sv_setnv_mg(TARG, nv)
164 #endif
165  
166 #line 167 "Summary.c"
167 #ifdef __cplusplus
168 extern "C" {
169 #endif
170 XS_EXTERNAL(boot_Mail__Summary); /* prototype to pass -Wmissing-prototypes */
171 0 XS_EXTERNAL(boot_Mail__Summary)
172 {
173 #if PERL_VERSION_LE(5, 21, 5)
174 dVAR; dXSARGS;
175 #else
176 0 dVAR; dXSBOOTARGSXSAPIVERCHK;
177 #endif
178  
179 PERL_UNUSED_VAR(cv); /* -W */
180 PERL_UNUSED_VAR(items); /* -W */
181 #if PERL_VERSION_LE(5, 21, 5)
182 XS_VERSION_BOOTCHECK;
183 # ifdef XS_APIVERSION_BOOTCHECK
184 XS_APIVERSION_BOOTCHECK;
185 # endif
186 #endif
187  
188 #if PERL_VERSION_LE(5, 21, 5)
189 # if PERL_VERSION_GE(5, 9, 0)
190 if (PL_unitcheckav)
191 call_list(PL_scopestack_ix, PL_unitcheckav);
192 # endif
193 XSRETURN_YES;
194 #else
195 0 Perl_xs_boot_epilog(aTHX_ ax);
196 #endif
197 0 }
198  
199 #ifdef __cplusplus
200 }
201 #endif
« blib/lib/Mail/Summary.pm ↑ Summary