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