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