line |
true |
false |
branch |
306
|
0 |
0 |
return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r; |
|
0 |
0 |
return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r; |
366
|
0 |
0 |
for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { |
|
0 |
0 |
for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { |
367
|
0 |
0 |
while ((*f1 == ' ') && (f1 != l1)) ++f1; |
|
0 |
0 |
while ((*f1 == ' ') && (f1 != l1)) ++f1; |
368
|
0 |
0 |
while ((*f2 == ' ') && (f2 != l2)) ++f2; |
|
0 |
0 |
while ((*f2 == ' ') && (f2 != l2)) ++f2; |
369
|
0 |
0 |
if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; |
|
0 |
0 |
if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; |
383
|
0 |
0 |
while (equiv != 0 && *ne) { |
|
0 |
0 |
while (equiv != 0 && *ne) { |
384
|
0 |
0 |
for (nb = ne; *ne; ++ne) { |
385
|
0 |
0 |
if (*ne == '|') break; |
388
|
0 |
0 |
if (*ne) ++ne; |
407
|
0 |
0 |
if (ty) { |
409
|
0 |
0 |
while (iter) { |
410
|
0 |
0 |
if (strcmp(iter->type->name, c) == 0) { |
411
|
0 |
0 |
if (iter == ty->cast) |
415
|
0 |
0 |
if (iter->next) |
419
|
0 |
0 |
if (ty->cast) ty->cast->prev = iter; |
434
|
0 |
0 |
if (ty) { |
436
|
0 |
0 |
while (iter) { |
437
|
0 |
0 |
if (iter->type == from) { |
438
|
0 |
0 |
if (iter == ty->cast) |
442
|
0 |
0 |
if (iter->next) |
446
|
0 |
0 |
if (ty->cast) ty->cast->prev = iter; |
461
|
0 |
0 |
return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); |
|
0 |
0 |
return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); |
470
|
0 |
0 |
if (!ty || !ty->dcast) return ty; |
|
0 |
0 |
if (!ty || !ty->dcast) return ty; |
471
|
0 |
0 |
while (ty && (ty->dcast)) { |
|
0 |
0 |
while (ty && (ty->dcast)) { |
473
|
0 |
0 |
if (ty) lastty = ty; |
496
|
0 |
0 |
if (!type) return NULL; |
497
|
0 |
0 |
if (type->str != NULL) { |
500
|
0 |
0 |
for (s = type->str; *s; s++) |
501
|
0 |
0 |
if (*s == '|') last_name = s+1; |
517
|
0 |
0 |
while (cast) { |
518
|
0 |
0 |
if (!cast->converter) { |
520
|
0 |
0 |
if (!tc->clientdata) { |
547
|
0 |
0 |
if (iter->size) { |
554
|
0 |
0 |
if (iname) { |
556
|
0 |
0 |
if (compare == 0) { |
558
|
0 |
0 |
} else if (compare < 0) { |
559
|
0 |
0 |
if (i) { |
564
|
0 |
0 |
} else if (compare > 0) { |
570
|
0 |
0 |
} while (l <= r); |
573
|
0 |
0 |
} while (iter != end); |
592
|
0 |
0 |
if (ret) { |
600
|
0 |
0 |
for (; i < iter->size; ++i) { |
601
|
0 |
0 |
if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) |
|
0 |
0 |
if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) |
605
|
0 |
0 |
} while (iter != end); |
620
|
0 |
0 |
for (; u != eu; ++u) { |
635
|
0 |
0 |
for (; u != eu; ++u) { |
638
|
0 |
0 |
if ((d >= '0') && (d <= '9')) |
|
0 |
0 |
if ((d >= '0') && (d <= '9')) |
640
|
0 |
0 |
else if ((d >= 'a') && (d <= 'f')) |
|
0 |
0 |
else if ((d >= 'a') && (d <= 'f')) |
645
|
0 |
0 |
if ((d >= '0') && (d <= '9')) |
|
0 |
0 |
if ((d >= '0') && (d <= '9')) |
647
|
0 |
0 |
else if ((d >= 'a') && (d <= 'f')) |
|
0 |
0 |
else if ((d >= 'a') && (d <= 'f')) |
662
|
0 |
0 |
if ((2*sizeof(void *) + 2) > bsz) return 0; |
665
|
0 |
0 |
if (strlen(name) + 1 > (bsz - (r - buff))) return 0; |
672
|
0 |
0 |
if (*c != '_') { |
673
|
0 |
0 |
if (strcmp(c,"NULL") == 0) { |
686
|
0 |
0 |
size_t lname = (name ? strlen(name) : 0); |
687
|
0 |
0 |
if ((2*sz + 2 + lname) > bsz) return 0; |
690
|
0 |
0 |
if (lname) { |
700
|
0 |
0 |
if (*c != '_') { |
701
|
0 |
0 |
if (strcmp(c,"NULL") == 0) { |
1025
|
0 |
0 |
if (sv_isobject(err)) |
1028
|
0 |
0 |
croak("%s", SvPV_nolen(err)); |
1067
|
0 |
0 |
if (!type) return NULL; |
1068
|
0 |
0 |
if (type->clientdata != NULL) { |
1079
|
0 |
0 |
if (ty) { |
1081
|
0 |
0 |
while (iter) { |
1082
|
0 |
0 |
if (strcmp(SWIG_Perl_TypeProxyName(iter->type), c) == 0) { |
1083
|
0 |
0 |
if (iter == ty->cast) |
1087
|
0 |
0 |
if (iter->next) |
1091
|
0 |
0 |
if (ty->cast) ty->cast->prev = iter; |
1109
|
0 |
0 |
if (own) |
1113
|
0 |
0 |
if (SvGMAGICAL(sv)) |
1117
|
0 |
0 |
if (sv_isobject(sv)) { |
1120
|
0 |
0 |
if ((SvTYPE(tsv) == SVt_PVHV)) { |
1122
|
0 |
0 |
if (SvMAGICAL(tsv)) { |
1124
|
0 |
0 |
if (mg) { |
1126
|
0 |
0 |
if (sv_isobject(sv)) { |
1128
|
0 |
0 |
tmp = SvIV(tsv); |
1135
|
0 |
0 |
tmp = SvIV(tsv); |
1138
|
0 |
0 |
} else if (! SvOK(sv)) { /* Check for undef */ |
|
0 |
0 |
} else if (! SvOK(sv)) { /* Check for undef */ |
|
0 |
0 |
} else if (! SvOK(sv)) { /* Check for undef */ |
1141
|
0 |
0 |
} else if (SvTYPE(sv) == SVt_RV) { /* Check for NULL pointer */ |
1142
|
0 |
0 |
if (!SvROK(sv)) { |
1144
|
0 |
0 |
if (SvIOK(sv)) { |
1157
|
0 |
0 |
if (_t) { |
1159
|
0 |
0 |
char *_c = HvNAME(SvSTASH(SvRV(sv))); |
|
0 |
0 |
char *_c = HvNAME(SvSTASH(SvRV(sv))); |
|
0 |
0 |
char *_c = HvNAME(SvSTASH(SvRV(sv))); |
|
0 |
0 |
char *_c = HvNAME(SvSTASH(SvRV(sv))); |
|
0 |
0 |
char *_c = HvNAME(SvSTASH(SvRV(sv))); |
|
0 |
0 |
char *_c = HvNAME(SvSTASH(SvRV(sv))); |
1164
|
0 |
0 |
if (!tc) { |
1171
|
0 |
0 |
if (newmemory == SWIG_CAST_NEW_MEMORY) { |
1173
|
0 |
0 |
if (own) |
1184
|
0 |
0 |
if (tsv && (flags & SWIG_POINTER_DISOWN)) { |
|
0 |
0 |
if (tsv && (flags & SWIG_POINTER_DISOWN)) { |
1191
|
0 |
0 |
if (isGV(gv)) { |
1192
|
0 |
0 |
HV *hv = GvHVn(gv); |
1197
|
0 |
0 |
if (hv_exists_ent(hv, obj, 0)) { |
1212
|
0 |
0 |
if (ptr && (flags & (SWIG_SHADOW | SWIG_POINTER_OWN))) { |
|
0 |
0 |
if (ptr && (flags & (SWIG_SHADOW | SWIG_POINTER_OWN))) { |
1219
|
0 |
0 |
if (flags & SWIG_POINTER_OWN) { |
1222
|
0 |
0 |
if (!isGV(gv)) |
1224
|
0 |
0 |
hv=GvHVn(gv); |
1250
|
0 |
0 |
if ((2*sz + 1 + strlen(SWIG_Perl_TypeProxyName(type))) > 1000) return; |
1270
|
0 |
0 |
if ((!obj) || (!SvOK(obj))) return SWIG_ERROR; |
|
0 |
0 |
if ((!obj) || (!SvOK(obj))) return SWIG_ERROR; |
|
0 |
0 |
if ((!obj) || (!SvOK(obj))) return SWIG_ERROR; |
|
0 |
0 |
if ((!obj) || (!SvOK(obj))) return SWIG_ERROR; |
1271
|
0 |
0 |
c = SvPV_nolen(obj); |
1273
|
0 |
0 |
if (*c != '_') return SWIG_ERROR; |
1276
|
0 |
0 |
if (ty) { |
1278
|
0 |
0 |
if (!tc) return SWIG_ERROR; |
1359
|
1 |
0 |
if (!type_pointer) { |
1361
|
1 |
0 |
if (pointer && SvOK(pointer)) { |
|
1 |
0 |
if (pointer && SvOK(pointer)) { |
|
1 |
0 |
if (pointer && SvOK(pointer)) { |
|
0 |
1 |
if (pointer && SvOK(pointer)) { |
1362
|
0 |
0 |
type_pointer = INT2PTR(swig_type_info **, SvIV(pointer)); |
1553
|
0 |
0 |
if (!init) { |
1564
|
0 |
4 |
if (SvMAGICAL(obj)) { |
1566
|
0 |
0 |
SvSetSV(tmp, obj); |
1569
|
4 |
0 |
if (SvPOK(obj)) { |
1571
|
4 |
0 |
char *cstr = SvPV(obj, len); |
1573
|
4 |
0 |
if (cptr) { |
1574
|
4 |
0 |
if (alloc) { |
1575
|
0 |
4 |
if (*alloc == SWIG_NEWOBJ) { |
1583
|
0 |
4 |
if (psize) *psize = size; |
1587
|
0 |
0 |
if (pchar_descriptor) { |
1589
|
0 |
0 |
if (SWIG_ConvertPtr(obj, (void**)&vptr, pchar_descriptor, 0) == SWIG_OK) { |
1590
|
0 |
0 |
if (cptr) *cptr = vptr; |
1591
|
0 |
0 |
if (psize) *psize = vptr ? (strlen(vptr) + 1) : 0; |
|
0 |
0 |
if (psize) *psize = vptr ? (strlen(vptr) + 1) : 0; |
1592
|
0 |
0 |
if (alloc) *alloc = SWIG_OLDOBJ; |
1628
|
0 |
0 |
if (SvNIOK(obj)) { |
1629
|
0 |
0 |
if (val) *val = SvNV(obj); |
|
0 |
0 |
if (val) *val = SvNV(obj); |
1631
|
0 |
0 |
} else if (SvIOK(obj)) { |
1632
|
0 |
0 |
if (val) *val = (double) SvIV(obj); |
|
0 |
0 |
if (val) *val = (double) SvIV(obj); |
1635
|
0 |
0 |
const char *nptr = SvPV_nolen(obj); |
1636
|
0 |
0 |
if (nptr) { |
1641
|
0 |
0 |
if (errno == ERANGE) { |
1645
|
0 |
0 |
if (*endptr == '\0') { |
1646
|
0 |
0 |
if (val) *val = v; |
1665
|
0 |
0 |
if ((min <= x && x <= max)) { |
|
0 |
0 |
if ((min <= x && x <= max)) { |
1668
|
0 |
0 |
double rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */ |
1669
|
0 |
0 |
if ((errno == EDOM) || (errno == ERANGE)) { |
|
0 |
0 |
if ((errno == EDOM) || (errno == ERANGE)) { |
1673
|
0 |
0 |
if (rd < x) { |
1675
|
0 |
0 |
} else if (rd > x) { |
1682
|
0 |
0 |
if (reps < 8*DBL_EPSILON) { |
1695
|
0 |
4 |
if (SvUOK(obj)) { |
1696
|
0 |
0 |
UV v = SvUV(obj); |
1698
|
0 |
0 |
if (val) *val = v; |
1702
|
4 |
0 |
} else if (SvIOK(obj)) { |
1703
|
4 |
0 |
IV v = SvIV(obj); |
1704
|
4 |
0 |
if (v >= 0 && (IVSIZE <= sizeof(*val) || v <= ULONG_MAX)) { |
1705
|
4 |
0 |
if (val) *val = v; |
1711
|
0 |
0 |
const char *nptr = SvPV_nolen(obj); |
1712
|
0 |
0 |
if (nptr) { |
1717
|
0 |
0 |
if (errno == ERANGE) { |
1721
|
0 |
0 |
if (*endptr == '\0') { |
1722
|
0 |
0 |
if (val) *val = v; |
1727
|
0 |
0 |
if (!dispatch) { |
1730
|
0 |
0 |
if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX)) { |
|
0 |
0 |
if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX)) { |
1731
|
0 |
0 |
if (val) *val = (unsigned long)(d); |
1749
|
0 |
0 |
if (SvUOK(obj)) { |
1752
|
0 |
0 |
if (val) *val = SvUV(obj); |
|
0 |
0 |
if (val) *val = SvUV(obj); |
1754
|
0 |
0 |
} else if (SvIOK(obj)) { |
1755
|
0 |
0 |
IV v = SvIV(obj); |
1756
|
0 |
0 |
if (v >= 0 && (IVSIZE <= sizeof(*val) || v <= ULLONG_MAX)) { |
1757
|
0 |
0 |
if (val) *val = v; |
1764
|
0 |
0 |
const char *nptr = SvPV_nolen(obj); |
1765
|
0 |
0 |
if (nptr) { |
1770
|
0 |
0 |
if (errno == ERANGE) { |
1774
|
0 |
0 |
if (*endptr == '\0') { |
1775
|
0 |
0 |
if (val) *val = v; |
1780
|
0 |
0 |
if (!dispatch) { |
1784
|
0 |
0 |
if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, mant_max)) { |
|
0 |
0 |
if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, mant_max)) { |
1785
|
0 |
0 |
if (val) *val = (unsigned long long)(d); |
1803
|
4 |
0 |
res = SWIG_AsVal_unsigned_SS_long SWIG_PERL_CALL_ARGS_2(obj, val ? &v : 0); |
1804
|
4 |
0 |
if (SWIG_IsOK(res) && val) *val = (size_t)(v); |
|
4 |
0 |
if (SWIG_IsOK(res) && val) *val = (size_t)(v); |
1839
|
4 |
0 |
if (carray) { |
1851
|
4 |
0 |
return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0)); |
1896
|
3 |
0 |
if ((items < 2) || (items > 2)) { |
|
0 |
3 |
if ((items < 2) || (items > 2)) { |
1900
|
0 |
3 |
if (!SWIG_IsOK(res1)) { |
1901
|
0 |
0 |
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itex2MML_filter" "', argument " "1"" of type '" "char const *""'"); |
1905
|
0 |
3 |
if (!SWIG_IsOK(ecode2)) { |
1906
|
0 |
0 |
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "itex2MML_filter" "', argument " "2"" of type '" "size_t""'"); |
1911
|
0 |
3 |
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); |
1915
|
0 |
0 |
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); |
1935
|
1 |
0 |
if ((items < 2) || (items > 2)) { |
|
0 |
1 |
if ((items < 2) || (items > 2)) { |
1939
|
0 |
1 |
if (!SWIG_IsOK(res1)) { |
1940
|
0 |
0 |
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "itex2MML_html_filter" "', argument " "1"" of type '" "char const *""'"); |
1944
|
0 |
1 |
if (!SWIG_IsOK(ecode2)) { |
1945
|
0 |
0 |
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "itex2MML_html_filter" "', argument " "2"" of type '" "size_t""'"); |
1950
|
0 |
1 |
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); |
1954
|
0 |
0 |
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); |
1967
|
4 |
0 |
if ((items < 0) || (items > 0)) { |
|
0 |
4 |
if ((items < 0) || (items > 0)) { |
2072
|
1 |
0 |
if (swig_module.next==0) { |
2084
|
1 |
0 |
if (!module_head) { |
2092
|
0 |
0 |
if (iter==&swig_module) { |
2097
|
0 |
0 |
} while (iter!= module_head); |
2108
|
0 |
1 |
if (init == 0) return; |
2114
|
1 |
1 |
for (i = 0; i < swig_module.size; ++i) { |
2124
|
0 |
1 |
if (swig_module.next != &swig_module) { |
2127
|
0 |
1 |
if (type) { |
2132
|
0 |
0 |
if (swig_module.type_initial[i]->clientdata) { |
2144
|
1 |
1 |
while (cast->type) { |
2150
|
0 |
1 |
if (swig_module.next != &swig_module) { |
2156
|
0 |
1 |
if (ret) { |
2157
|
0 |
0 |
if (type == swig_module.type_initial[i]) { |
2169
|
0 |
0 |
if (!ocast) ret = 0; |
2173
|
1 |
0 |
if (!ret) { |
2177
|
0 |
1 |
if (type->cast) { |
2218
|
0 |
0 |
if (init_run) return; |
2221
|
0 |
0 |
for (i = 0; i < swig_module.size; i++) { |
2222
|
0 |
0 |
if (swig_module.types[i]->clientdata) { |
2224
|
0 |
0 |
while (equiv) { |
2225
|
0 |
0 |
if (!equiv->converter) { |
2226
|
0 |
0 |
if (equiv->type && !equiv->type->clientdata) |
|
0 |
0 |
if (equiv->type && !equiv->type->clientdata) |
2257
|
3 |
1 |
for (i = 0; swig_commands[i].name; i++) { |
2267
|
0 |
1 |
for (i = 0; swig_variables[i].name; i++) { |
2270
|
0 |
0 |
if (swig_variables[i].type) { |
2279
|
0 |
1 |
for (i = 0; swig_constants[i].type; i++) { |