FreeBSD/contrib/subversion/subversion/libsvn_delta/text_delta.c
/* This is the close handler for a target-push delta stream.  It sends
 * a final window if there is any buffered target data, and then sends
 * a NULL window signifying the end of the window stream. */
This is the close handler for a target-push delta stream.  It sends
a final window if there is any buffered target data, and then sends
a NULL window signifying the end of the window stream.
This is the close handler for a target - push delta stream . It sends a final window if there is any buffered target data and then sends a NULL window signifying the end of the window stream .
static svn_error_t *
tpush_close_handler(void *baton)
{
  struct tpush_baton *tb = baton;
  svn_txdelta_window_t *window;
  if (tb->target_len > 0)
    {
      window = compute_window(tb->buf, tb->source_len, tb->target_len,
                              tb->source_offset, tb->pool);
      SVN_ERR(tb->wh(window, tb->whb));
    }
  return tb->wh(NULL, tb->whb);
}
static svn_error_t * tpush_close_handler ( void * baton ) { struct tpush_baton * tb = baton ; svn_txdelta_window_t * window ; if ( tb -> target_len > 0 ) { window = compute_window ( tb -> buf , tb -> source_len , tb -> target_len , tb -> source_offset , tb -> pool ) ; SVN_ERR ( tb -> wh ( window , tb -> whb ) ) ; } return tb -> wh ( NULL , tb -> whb ) ; }
This is the close handler for a target-push delta stream.
This is the close handler for a target - push delta stream .
/* Send a final window if we have any residual target data. */ /* Send a final NULL window signifying the end. */