lib/Ufal/MorphoDiTa.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/Ufal/MorphoDiTa.pm ↑ Summary morphodita/morphodita.cpp »
1 /*
2 * This file was generated automatically by ExtUtils::ParseXS version 3.63 from the
3 * contents of MorphoDiTa.xs. Do not edit this file, edit MorphoDiTa.xs instead.
4 *
5 * ANY CHANGES MADE HERE WILL BE LOST!
6 *
7 */
8  
9 #line 1 "lib/Ufal/MorphoDiTa.xs"
10 #include "EXTERN.h"
11 #include "perl.h"
12 #include "XSUB.h"
13  
14 #line 15 "lib/Ufal/MorphoDiTa.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 /* simple backcompat versions of the TARGx() macros with no optimisation */
159 #ifndef TARGi
160 # define TARGi(iv, do_taint) sv_setiv_mg(TARG, iv)
161 # define TARGu(uv, do_taint) sv_setuv_mg(TARG, uv)
162 # define TARGn(nv, do_taint) sv_setnv_mg(TARG, nv)
163 #endif
164  
165 #line 166 "lib/Ufal/MorphoDiTa.c"
166 #ifdef __cplusplus
167 extern "C" {
168 #endif
169 XS_EXTERNAL(boot_Ufal__MorphoDiTa__XS); /* prototype to pass -Wmissing-prototypes */
170 0 XS_EXTERNAL(boot_Ufal__MorphoDiTa__XS)
171 {
172 #if PERL_VERSION_LE(5, 21, 5)
173 dVAR; dXSARGS;
174 #else
175 0 dVAR; dXSBOOTARGSAPIVERCHK;
176 #endif
177  
178 PERL_UNUSED_VAR(cv); /* -W */
179 PERL_UNUSED_VAR(items); /* -W */
180 #if PERL_VERSION_LE(5, 21, 5) && defined(XS_APIVERSION_BOOTCHECK)
181 XS_APIVERSION_BOOTCHECK;
182 #endif
183  
184 #if PERL_VERSION_LE(5, 21, 5)
185 # if PERL_VERSION_GE(5, 9, 0)
186 if (PL_unitcheckav)
187 call_list(PL_scopestack_ix, PL_unitcheckav);
188 # endif
189 XSRETURN_YES;
190 #else
191 0 Perl_xs_boot_epilog(aTHX_ ax);
192 #endif
193 0 }
194  
195 #ifdef __cplusplus
196 }
197 #endif
« blib/lib/Ufal/MorphoDiTa.pm ↑ Summary morphodita/morphodita.cpp »