Lines Matching refs:ictx
238 ictx->current, source, ictx->current_line); \
244 ictx->glue, source, ictx->glue_line); \
424 incctx_destroy(isc_mem_t *mctx, dns_incctx_t *ictx) {
428 parent = ictx->parent;
429 ictx->parent = NULL;
431 isc_mem_put(mctx, ictx, sizeof(*ictx));
434 ictx = parent;
475 dns_incctx_t *ictx;
479 ictx = isc_mem_get(mctx, sizeof(*ictx));
480 if (ictx == NULL)
484 dns_fixedname_init(&ictx->fixed[i]);
485 ictx->in_use[i] = ISC_FALSE;
488 ictx->origin_in_use = 0;
489 ictx->origin = dns_fixedname_name(&ictx->fixed[ictx->origin_in_use]);
490 ictx->in_use[ictx->origin_in_use] = ISC_TRUE;
492 dns_name_fromregion(ictx->origin, &r);
494 ictx->glue = NULL;
495 ictx->current = NULL;
496 ictx->glue_in_use = -1;
497 ictx->current_in_use = -1;
498 ictx->parent = NULL;
499 ictx->drop = ISC_FALSE;
500 ictx->glue_line = 0;
501 ictx->current_line = 0;
503 *ictxp = ictx;
743 dns_incctx_t *ictx;
745 ictx = lctx->inc;
819 result = dns_name_fromtext(owner, &buffer, ictx->origin,
850 lctx->lex, ictx->origin, 0,
947 check_wildcard(dns_incctx_t *ictx, const char *source, unsigned long line,
952 name = (ictx->glue != NULL) ? ictx->glue : ictx->current;
1001 dns_incctx_t *ictx;
1017 ictx = lctx->inc;
1056 if (ictx->parent != NULL) {
1058 lctx->inc = ictx->parent;
1059 ictx->parent = NULL;
1060 incctx_destroy(lctx->mctx, ictx);
1064 ictx = lctx->inc;
1158 ictx->origin, lctx);
1167 ictx = lctx->inc;
1334 if (!ictx->in_use[new_in_use])
1337 dns_fixedname_init(&ictx->fixed[new_in_use]);
1338 new_name = dns_fixedname_name(&ictx->fixed[new_in_use]);
1345 ictx->origin, ISC_FALSE, NULL);
1358 if (ictx->origin_in_use != -1)
1359 ictx->in_use[ictx->origin_in_use] =
1361 ictx->origin_in_use = new_in_use;
1362 ictx->in_use[ictx->origin_in_use] = ISC_TRUE;
1363 ictx->origin = new_name;
1364 ictx->origin_changed = ISC_TRUE;
1380 ictx = lctx->inc;
1397 if (ictx->glue != NULL &&
1398 dns_name_compare(ictx->glue, new_name) != 0) {
1400 ictx->glue, source,
1401 ictx->glue_line);
1406 if (ictx->glue_in_use != -1)
1407 ictx->in_use[ictx->glue_in_use] =
1409 ictx->glue_in_use = -1;
1410 ictx->glue = NULL;
1423 if ((ictx->glue == NULL) && (ictx->current == NULL ||
1424 dns_name_compare(ictx->current, new_name) != 0)) {
1430 ictx->glue = new_name;
1431 ictx->glue_in_use = new_in_use;
1432 ictx->in_use[ictx->glue_in_use] =
1437 ictx->current,
1439 ictx->current_line);
1446 if (ictx->current_in_use != -1)
1447 ictx->in_use[ictx->current_in_use] =
1449 ictx->current_in_use = new_in_use;
1450 ictx->in_use[ictx->current_in_use] =
1452 ictx->current = new_name;
1462 check_wildcard(ictx, source, line,
1480 ictx->drop = ISC_TRUE;
1482 ictx->drop = ISC_FALSE;
1524 if (ictx->current == NULL) {
1537 if (ictx->origin_changed) {
1540 dns_name_format(ictx->current, cbuf,
1542 dns_name_format(ictx->origin, obuf,
1552 ictx->origin_changed = ISC_FALSE;
1639 if (type == dns_rdatatype_ns && ictx->glue == NULL)
1706 name = (ictx->glue != NULL) ? ictx->glue :
1707 ictx->current;
1745 type, lctx->lex, ictx->origin,
1754 if (ictx->drop) {
1761 dns_name_compare(ictx->current, lctx->top) != 0) {
1763 dns_name_format(ictx->current, namebuf,
1862 if (ictx->glue != NULL)
1895 if (ictx->glue != NULL)
1909 if (ictx->glue != NULL)
1910 ictx->glue_line = line;
1912 ictx->current_line = line;
1928 result = commit(callbacks, lctx, ¤t_list, ictx->current,
1929 source, ictx->current_line);
1934 result = commit(callbacks, lctx, &glue_list, ictx->glue,
1935 source, ictx->glue_line);
1984 dns_incctx_t *ictx;
1992 ictx = lctx->inc;
2000 if (ictx->glue != NULL || ictx->current != NULL) {
2009 dns_name_toregion((ictx->glue != NULL) ?
2010 ictx->glue : ictx->current, &r);
2012 new->drop = ictx->drop;
2018 new->parent = ictx;