Debian Codegraph @

Ext/pwmsearch.c

raw symbols SCIP
1 /*
2 * This file was generated automatically by ExtUtils::ParseXS version 2.21 from the
3 * contents of pwmsearch.xs. Do not edit this file, edit pwmsearch.xs instead.
4 *
5 * ANY CHANGES MADE HERE WILL BE LOST!
6 *
7 */
8
9 #line 1 "pwmsearch.xs"
10 #include "EXTERN.h"
11 #include "perl.h"
12 #include "XSUB.h"
13 #include "pwm_searchPFF.c"
14 #include <stdio.h>
15
16
17 #line 18 "pwmsearch.c"
18 #ifndef PERL_UNUSED_VAR
19 # define PERL_UNUSED_VAR(var) if (0) var = var
20 #endif
21
22 #ifndef PERL_ARGS_ASSERT_CROAK_XS_USAGE
23 #define PERL_ARGS_ASSERT_CROAK_XS_USAGE assert(cv); assert(params)
24
25 /* prototype to pass -Wmissing-prototypes */
26 STATIC void
27 S_croak_xs_usage(pTHX_ const CV *const cv, const char *const params);
28
29 STATIC void
30 S_croak_xs_usage(pTHX_ const CV *const cv, const char *const params)
31 {
32 const GV *const gv = CvGV(cv);
33
34 PERL_ARGS_ASSERT_CROAK_XS_USAGE;
35
36 if (gv) {
37 const char *const gvname = GvNAME(gv);
38 const HV *const stash = GvSTASH(gv);
39 const char *const hvname = stash ? HvNAME(stash) : NULL;
40
41 if (hvname)
42 Perl_croak(aTHX_ "Usage: %s::%s(%s)", hvname, gvname, params);
43 else
44 Perl_croak(aTHX_ "Usage: %s(%s)", gvname, params);
45 } else {
46 /* Pants. I don't think that it should be possible to get here. */
47 Perl_croak(aTHX_ "Usage: CODE(0x%"UVxf")(%s)", PTR2UV(cv), params);
48 }
49 }
50 #undef PERL_ARGS_ASSERT_CROAK_XS_USAGE
51
52 #ifdef PERL_IMPLICIT_CONTEXT
53 #define croak_xs_usage(a,b) S_croak_xs_usage(aTHX_ a,b)
54 #else
55 #define croak_xs_usage S_croak_xs_usage
56 #endif
57
58 #endif
59
60 /* NOTE: the prototype of newXSproto() is different in versions of perls,
61 * so we define a portable version of newXSproto()
62 */
63 #ifdef newXS_flags
64 #define newXSproto_portable(name, c_impl, file, proto) newXS_flags(name, c_impl, file, proto, 0)
65 #else
66 #define newXSproto_portable(name, c_impl, file, proto) (PL_Sv=(SV*)newXS(name, c_impl, file), sv_setpv(PL_Sv, proto), (CV*)PL_Sv)
67 #endif /* !defined(newXS_flags) */
68
69 #line 70 "pwmsearch.c"
70
71 XS(XS_TFBS__Ext__pwmsearch_search_xs); /* prototype to pass -Wmissing-prototypes */
72 XS(XS_TFBS__Ext__pwmsearch_search_xs)
73 {
74 #ifdef dVAR
75 dVAR; dXSARGS;
76 #else
77 dXSARGS;
78 #endif
79 if (items != 6)
80 croak_xs_usage(cv, "matrixfile, seqfile, threshold, tfname, tfclass, outfile");
81 {
82 char* matrixfile = (char *)SvPV_nolen(ST(0));
83 char* seqfile = (char *)SvPV_nolen(ST(1));
84 double threshold = (double)SvNV(ST(2));
85 char* tfname = (char *)SvPV_nolen(ST(3));
86 char* tfclass = (char *)SvPV_nolen(ST(4));
87 char* outfile = (char *)SvPV_nolen(ST(5));
88 int RETVAL;
89 dXSTARG;
90 #line 18 "pwmsearch.xs"
91 do_search(matrixfile, seqfile, threshold, tfname, tfclass, outfile);
92 #line 93 "pwmsearch.c"
93 }
94 XSRETURN(1);
95 }
96
97 #ifdef __cplusplus
98 extern "C"
99 #endif
100 XS(boot_TFBS__Ext__pwmsearch); /* prototype to pass -Wmissing-prototypes */
101 XS(boot_TFBS__Ext__pwmsearch)
102 {
103 #ifdef dVAR
104 dVAR; dXSARGS;
105 #else
106 dXSARGS;
107 #endif
108 #if (PERL_REVISION == 5 && PERL_VERSION < 9)
109 char* file = __FILE__;
110 #else
111 const char* file = __FILE__;
112 #endif
113
114 PERL_UNUSED_VAR(cv); /* -W */
115 PERL_UNUSED_VAR(items); /* -W */
116 XS_VERSION_BOOTCHECK ;
117
118 (void)newXS("TFBS::Ext::pwmsearch::search_xs", XS_TFBS__Ext__pwmsearch_search_xs, file);
119 #if (PERL_REVISION == 5 && PERL_VERSION >= 9)
120 if (PL_unitcheckav)
121 call_list(PL_scopestack_ix, PL_unitcheckav);
122 #endif
123 XSRETURN_YES;
124 }
125