• Home
  • Raw
  • Download

Lines Matching refs:jp

1021   JBL_PTR jp;  in _jbl_ptr_pool()  local
1038 jp = iwpool_alloc(sz, pool); in _jbl_ptr_pool()
1040 jp = malloc(sz); in _jbl_ptr_pool()
1042 if (!jp) { in _jbl_ptr_pool()
1045 jpr = (char*) jp; in _jbl_ptr_pool()
1046 jp->cnt = cnt; in _jbl_ptr_pool()
1047 jp->sz = sz; in _jbl_ptr_pool()
1052 for (i = 0, j = 0, cnt = 0; path[i] && cnt < jp->cnt; ++i, ++j) { in _jbl_ptr_pool()
1054 jp->n[cnt] = jpr + doff + j; in _jbl_ptr_pool()
1058 *(jp->n[cnt] + k) = '\0'; in _jbl_ptr_pool()
1063 *(jp->n[cnt] + k) = '~'; in _jbl_ptr_pool()
1065 *(jp->n[cnt] + k) = '/'; in _jbl_ptr_pool()
1069 *(jp->n[cnt] + k) = path[i]; in _jbl_ptr_pool()
1076 *jpp = jp; in _jbl_ptr_pool()
1243 JBL_PTR jp = vctx->op; in _jbl_visitor_update_jptr_cursor() local
1244 if (lvl < jp->cnt) { in _jbl_visitor_update_jptr_cursor()
1257 if (!strcmp(keyptr, jp->n[lvl]) || ((jp->n[lvl][0] == '*') && (jp->n[lvl][1] == '\0'))) { in _jbl_visitor_update_jptr_cursor()
1259 return (jp->cnt == lvl + 1); in _jbl_visitor_update_jptr_cursor()
1267 JBL_PTR jp = vctx->op; in _jbn_visitor_update_jptr_cursor() local
1268 if (lvl < jp->cnt) { in _jbn_visitor_update_jptr_cursor()
1282 int jplen = (int) strlen(jp->n[lvl]); in _jbn_visitor_update_jptr_cursor()
1284 … && !strncmp(keyptr, jp->n[lvl], idx)) || ((jp->n[lvl][0] == '*') && (jp->n[lvl][1] == '\0') )) { in _jbn_visitor_update_jptr_cursor()
1286 return (jp->cnt == lvl + 1); in _jbn_visitor_update_jptr_cursor()
1294 JBL_PTR jp = vctx->op; in _jbl_get_visitor2() local
1295 assert(jp); in _jbl_get_visitor2()
1301 } else if (jp->cnt < lvl + 1) { in _jbl_get_visitor2()
1308 JBL_PTR jp = vctx->op; in _jbl_get_visitor() local
1309 assert(jp); in _jbl_get_visitor()
1319 } else if (jp->cnt < lvl + 1) { in _jbl_get_visitor()
1325 bool _jbl_at(JBL jbl, JBL_PTR jp, JBL res) { in _jbl_at() argument
1328 .op = jp, in _jbl_at()
1336 iwrc jbl_at2(JBL jbl, JBL_PTR jp, JBL *res) { in jbl_at2() argument
1339 .op = jp, in jbl_at2()
1357 JBL_PTR jp; in jbl_at() local
1358 iwrc rc = _jbl_ptr_pool(path, &jp, 0); in jbl_at()
1363 rc = jbl_at2(jbl, jp, res); in jbl_at()
1364 free(jp); in jbl_at()
1372 JBL_PTR jp = vctx->op; in _jbn_get_visitor() local
1373 assert(jp); in _jbn_get_visitor()
1377 } else if (jp->cnt < lvl + 1) { in _jbn_get_visitor()
1383 iwrc jbn_at2(JBL_NODE node, JBL_PTR jp, JBL_NODE *res) { in jbn_at2() argument
1386 .op = jp, in jbn_at2()
1404 JBL_PTR jp; in jbn_at() local
1405 iwrc rc = _jbl_ptr_pool(path, &jp, 0); in jbn_at()
1410 rc = jbn_at2(node, jp, res); in jbn_at()
1411 free(jp); in jbn_at()
2115 JBL_PTR jp; in jbn_detach() local
2116 iwrc rc = _jbl_ptr_pool(path, &jp, 0); in jbn_detach()
2120 JBL_NODE res = jbn_detach2(target, jp); in jbn_detach()
2121 free(jp); in jbn_detach()