Perl.xs

filter: Statementstmt 0.0% 0 / 4 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 0.0% 0 / 8 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« Driver_xst.h ↑ Summary Perl.xsi »
1 /* This is a skeleton driver that only serves as a basic sanity check
2 that the Driver.xst mechansim doesn't have compile-time errors in it.
3 vim: ts=8:sw=4:expandtab
4 */
5  
6 #define PERL_NO_GET_CONTEXT
7 #include "DBIXS.h"
8 #include "dbd_xsh.h"
9  
10 #undef DBIh_SET_ERR_CHAR /* to syntax check emulation */
11 #include "dbivport.h"
12  
13 0 ▶DBISTATE_DECLARE;
Branch: 2 branches
BranchTrueFalseTotal
DBISTATE_DECLARE; 0 0 0
DBISTATE_DECLARE; 0 0 0
14  
15  
16 struct imp_drh_st {
17 dbih_drc_t com; /* MUST be first element in structure */
18 };
19 struct imp_dbh_st {
20 dbih_dbc_t com; /* MUST be first element in structure */
21 };
22 struct imp_sth_st {
23 dbih_stc_t com; /* MUST be first element in structure */
24 };
25  
26  
27  
28 #define dbd_discon_all(drh, imp_drh) (drh=drh,imp_drh=imp_drh,1)
29 #define dbd_dr_data_sources(drh, imp_drh, attr) (drh=drh,imp_drh=imp_drh,attr=attr,Nullav)
30 #define dbd_db_do4_iv(dbh,imp_dbh,p3,p4) (dbh=dbh,imp_dbh=imp_dbh,(void*)p3,p4=p4,-2)
31 #define dbd_db_last_insert_id(dbh, imp_dbh, p3,p4,p5,p6, attr) \
32 (dbh=dbh,imp_dbh=imp_dbh,p3=p3,p4=p4,p5=p5,p6=p6,attr=attr,&PL_sv_undef)
33 #define dbd_take_imp_data(h, imp_xxh, p3) (h=h,imp_xxh=imp_xxh,&PL_sv_undef)
34 #define dbd_st_execute_for_fetch(sth, imp_sth, p3, p4) \
35 (sth=sth,imp_sth=imp_sth,p3=p3,p4=p4,&PL_sv_undef)
36  
37 #define dbd_st_bind_col(sth, imp_sth, param, ref, sql_type, attribs) \
38 (sth=sth,imp_sth=imp_sth,param=param,ref=ref,sql_type=sql_type,attribs=attribs,1)
39  
40 int /* just to test syntax of macros etc */
41 0 dbd_st_rows(SV *h, imp_sth_t *imp_sth)
42 {
43 dTHX;
44 PERL_UNUSED_VAR(h);
45 0 DBIh_SET_ERR_CHAR(h, imp_sth, 0, 1, "err msg", "12345", Nullch);
46 0 return -1;
47 }
48  
49  
50 MODULE = DBD::Perl PACKAGE = DBD::Perl
51  
52 INCLUDE: Perl.xsi
53  
54 # vim:sw=4:ts=8
« Driver_xst.h ↑ Summary Perl.xsi »