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