subversion/libsvn_client/blame.c
/* Return a blame chunk associated with REV for a change starting
   at token START, and allocated in CHAIN->mainpool. */
Return a blame chunk associated with REV for a change starting
at token START, and allocated in CHAIN->mainpool.
Return a blame chunk associated with REV for a change starting at token START and allocated in CHAIN - > mainpool .
static struct blame *
blame_create(struct blame_chain *chain,
             const struct rev *rev,
             apr_off_t start)
{
  struct blame *blame;
  if (chain->avail)
    {
      blame = chain->avail;
      chain->avail = blame->next;
    }
  else
    blame = apr_palloc(chain->pool, sizeof(*blame));
  blame->rev = rev;
  blame->start = start;
  blame->next = NULL;
  return blame;
}
static struct blame * blame_create ( struct blame_chain * chain , const struct rev * rev , apr_off_t start ) { struct blame * blame ; if ( chain -> avail ) { blame = chain -> avail ; chain -> avail = blame -> next ; } else blame = apr_palloc ( chain -> pool , sizeof ( * blame ) ) ; blame -> rev = rev ; blame -> start = start ; blame -> next = NULL ; return blame ; }
Return a blame chunk associated with REV for a change starting
at token START, and allocated in CHAIN->mainpool.
Return a blame chunk associated with REV for a change starting at token START and allocated in CHAIN - > mainpool .