FreeBSD/contrib/subversion/subversion/libsvn_ra_svn/marshal.c
/* In *RESULT, return the boolean at index IDX in tuple ITEMS.
 */
In *RESULT, return the boolean at index IDX in tuple ITEMS.
In * RESULT return the boolean at index IDX in tuple ITEMS .
static svn_error_t *
svn_ra_svn__read_boolean(const apr_array_header_t *items,
                         int idx,
                         apr_uint64_t *result)
{
  svn_ra_svn_item_t *elt = &APR_ARRAY_IDX(items, idx, svn_ra_svn_item_t);
  CHECK_PROTOCOL_COND(elt->kind == SVN_RA_SVN_WORD);
  if (elt->u.word[0] == 't' && strcmp(elt->u.word, "true") == 0)
    *result = TRUE;
  else if (strcmp(elt->u.word, "false") == 0)
    *result = FALSE;
  else
    CHECK_PROTOCOL_COND(FALSE);
  return SVN_NO_ERROR;
}
static svn_error_t * svn_ra_svn__read_boolean ( const apr_array_header_t * items , int idx , apr_uint64_t * result ) { svn_ra_svn_item_t * elt = & APR_ARRAY_IDX ( items , idx , svn_ra_svn_item_t ) ; CHECK_PROTOCOL_COND ( elt -> kind == SVN_RA_SVN_WORD ) ; if ( elt -> u . word [ 0 ] == ' ' && strcmp ( elt -> u . word , " " ) == 0 ) * result = TRUE ; else if ( strcmp ( elt -> u . word , " " ) == 0 ) * result = FALSE ; else CHECK_PROTOCOL_COND ( FALSE ) ; return SVN_NO_ERROR ; }
In *RESULT, return the boolean at index IDX in tuple ITEMS.
In * RESULT return the boolean at index IDX in tuple ITEMS .