Lines Matching refs:rcp

1465 	struct regcache *rcp;  in int_regwcomp()  local
1469 rcp = ((struct reghashq *)qp)->regcachep; in int_regwcomp()
1470 if (*rcp->pattern == *pattern && in int_regwcomp()
1471 wcscmp(rcp->pattern, pattern) == 0) in int_regwcomp()
1476 if (rcp != (struct regcache *)reglink.q_forw) { in int_regwcomp()
1477 remque(&rcp->lq); in int_regwcomp()
1478 insque(&rcp->lq, &reglink); in int_regwcomp()
1480 if (rcp->refcnt == 0) in int_regwcomp()
1482 rcp->refcnt++; in int_regwcomp()
1483 *(struct regcache **)r = rcp; in int_regwcomp()
1497 if ((rcp = malloc(sizeof (struct regcache))) == NULL) in int_regwcomp()
1499 rcp->re = re; in int_regwcomp()
1500 if ((rcp->pattern = wsdup(pattern)) == NULL) { in int_regwcomp()
1502 free(rcp); in int_regwcomp()
1505 rcp->refcnt = 1; in int_regwcomp()
1506 insque(&rcp->lq, &reglink); in int_regwcomp()
1507 insque(&rcp->hash.hq, &reghash[key]); in int_regwcomp()
1508 rcp->hash.regcachep = rcp; in int_regwcomp()
1510 *(struct regcache **)r = rcp; in int_regwcomp()
1519 struct regcache *rcp; in int_regwfree() local
1521 rcp = (struct regcache *)r; in int_regwfree()
1523 if (--rcp->refcnt != 0) in int_regwfree()
1537 rcp = (struct regcache *)qp; in int_regwfree()
1538 if (rcp->refcnt != 0) in int_regwfree()
1546 remque(&rcp->lq); in int_regwfree()
1547 remque(&rcp->hash.hq); in int_regwfree()
1550 free(rcp->pattern); in int_regwfree()
1551 regfree(&rcp->re); in int_regwfree()
1552 free(rcp); in int_regwfree()
1561 struct regcache *rcp; in int_regwerror() local
1563 rcp = (struct regcache *)r; in int_regwerror()
1564 return (regerror(errcode, &rcp->re, errbuf, bufsiz)); in int_regwerror()
1577 struct regcache *rcp; in int_regwexec() local
1587 rcp = (struct regcache *)r; in int_regwexec()
1589 i = regexec(&rcp->re, mbs, nsub, mbsub, flags); in int_regwexec()