File Coverage

lib/Ufal/UDPipe.c
Criterion Covered Total %
statement 0 4 0.0
branch n/a
condition n/a
subroutine n/a
pod n/a
total 0 4 0.0


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