Lines Matching full:pchgno
95 ++pi->pchgno;
101 if (pi->pchgno < jpc_pchglist_numpchgs(pi->pchglist)) {
102 pi->pchg = jpc_pchglist_get(pi->pchglist, pi->pchgno);
103 } else if (pi->pchgno == jpc_pchglist_numpchgs(pi->pchglist)) {
541 pi->pchgno = 0;
566 int jpc_pchglist_insert(jpc_pchglist_t *pchglist, int pchgno, jpc_pchg_t *pchg)
571 if (pchgno < 0) {
572 pchgno = pchglist->numpchgs;
582 for (i = pchglist->numpchgs; i > pchgno; --i) {
585 pchglist->pchgs[pchgno] = pchg;
590 jpc_pchg_t *jpc_pchglist_remove(jpc_pchglist_t *pchglist, int pchgno)
594 assert(pchgno < pchglist->numpchgs);
595 pchg = pchglist->pchgs[pchgno];
596 for (i = pchgno + 1; i < pchglist->numpchgs; ++i) {
617 int pchgno;
621 for (pchgno = 0; pchgno < pchglist->numpchgs; ++pchgno) {
622 if (!(newpchg = jpc_pchg_copy(pchglist->pchgs[pchgno])) ||
633 int pchgno;
635 for (pchgno = 0; pchgno < pchglist->numpchgs; ++pchgno) {
636 jpc_pchg_destroy(pchglist->pchgs[pchgno]);
648 jpc_pchg_t *jpc_pchglist_get(jpc_pchglist_t *pchglist, int pchgno)
650 return pchglist->pchgs[pchgno];
670 pi->pchgno = -1;