Lines Matching defs:ictx

251 				ictx->current, source, ictx->current_line); \
257 ictx->glue, source, ictx->glue_line); \
421 incctx_destroy(isc_mem_t *mctx, dns_incctx_t *ictx) {
425 parent = ictx->parent;
426 ictx->parent = NULL;
428 isc_mem_put(mctx, ictx, sizeof(*ictx));
431 ictx = parent;
472 dns_incctx_t *ictx;
476 ictx = isc_mem_get(mctx, sizeof(*ictx));
477 if (ictx == NULL)
481 dns_fixedname_init(&ictx->fixed[i]);
482 ictx->in_use[i] = ISC_FALSE;
485 ictx->origin_in_use = 0;
486 ictx->origin = dns_fixedname_name(&ictx->fixed[ictx->origin_in_use]);
487 ictx->in_use[ictx->origin_in_use] = ISC_TRUE;
489 dns_name_fromregion(ictx->origin, &r);
491 ictx->glue = NULL;
492 ictx->current = NULL;
493 ictx->glue_in_use = -1;
494 ictx->current_in_use = -1;
495 ictx->parent = NULL;
496 ictx->drop = ISC_FALSE;
497 ictx->glue_line = 0;
498 ictx->current_line = 0;
499 ictx->origin_changed = ISC_TRUE;
501 *ictxp = ictx;
792 dns_incctx_t *ictx;
795 ictx = lctx->inc;
863 result = dns_name_fromtext(owner, &buffer, ictx->origin,
895 lctx->lex, ictx->origin, 0,
992 check_wildcard(dns_incctx_t *ictx, const char *source, unsigned long line,
997 name = (ictx->glue != NULL) ? ictx->glue : ictx->current;
1051 dns_incctx_t *ictx;
1066 ictx = lctx->inc;
1104 if (ictx->parent != NULL) {
1106 lctx->inc = ictx->parent;
1107 ictx->parent = NULL;
1108 incctx_destroy(lctx->mctx, ictx);
1113 ictx = lctx->inc;
1207 ictx->origin, lctx);
1216 ictx = lctx->inc;
1384 if (!ictx->in_use[new_in_use])
1387 dns_fixedname_init(&ictx->fixed[new_in_use]);
1388 new_name = dns_fixedname_name(&ictx->fixed[new_in_use]);
1395 ictx->origin, 0, NULL);
1408 if (ictx->origin_in_use != -1)
1409 ictx->in_use[ictx->origin_in_use] =
1411 ictx->origin_in_use = new_in_use;
1412 ictx->in_use[ictx->origin_in_use] = ISC_TRUE;
1413 ictx->origin = new_name;
1414 ictx->origin_changed = ISC_TRUE;
1431 ictx = lctx->inc;
1432 ictx->origin_changed = ISC_TRUE;
1449 if (ictx->glue != NULL &&
1450 dns_name_compare(ictx->glue, new_name) != 0) {
1452 ictx->glue, source,
1453 ictx->glue_line);
1458 if (ictx->glue_in_use != -1)
1459 ictx->in_use[ictx->glue_in_use] =
1461 ictx->glue_in_use = -1;
1462 ictx->glue = NULL;
1475 if ((ictx->glue == NULL) && (ictx->current == NULL ||
1476 dns_name_compare(ictx->current, new_name) != 0)) {
1482 ictx->glue = new_name;
1483 ictx->glue_in_use = new_in_use;
1484 ictx->in_use[ictx->glue_in_use] =
1489 ictx->current,
1491 ictx->current_line);
1498 if (ictx->current_in_use != -1)
1499 ictx->in_use[ictx->current_in_use] =
1501 ictx->current_in_use = new_in_use;
1502 ictx->in_use[ictx->current_in_use] =
1504 ictx->current = new_name;
1514 check_wildcard(ictx, source, line,
1533 ictx->drop = ISC_TRUE;
1535 ictx->drop = ISC_FALSE;
1577 if (ictx->current == NULL) {
1590 if (ictx->origin_changed) {
1593 dns_name_format(ictx->current, cbuf,
1595 dns_name_format(ictx->origin, obuf,
1605 ictx->origin_changed = ISC_FALSE;
1693 if (type == dns_rdatatype_ns && ictx->glue == NULL)
1784 name = (ictx->glue != NULL) ? ictx->glue :
1785 ictx->current;
1825 type, lctx->lex, ictx->origin,
1834 if (ictx->drop) {
1841 dns_name_compare(ictx->current, lctx->top) != 0) {
1843 dns_name_format(ictx->current, namebuf,
1941 if (ictx->glue != NULL)
1974 if (ictx->glue != NULL)
1999 if (ictx->glue != NULL)
2000 ictx->glue_line = line;
2002 ictx->current_line = line;
2018 result = commit(callbacks, lctx, &current_list, ictx->current,
2019 source, ictx->current_line);
2024 result = commit(callbacks, lctx, &glue_list, ictx->glue,
2025 source, ictx->glue_line);
2074 dns_incctx_t *ictx;
2082 ictx = lctx->inc;
2092 newctx->origin_changed = ictx->origin_changed;
2095 if (ictx->glue != NULL || ictx->current != NULL) {
2104 dns_name_toregion((ictx->glue != NULL) ?
2105 ictx->glue : ictx->current, &r);
2107 newctx->drop = ictx->drop;
2113 newctx->parent = ictx;