Lines Matching defs:bvec
423 ber_bvecadd_x( struct berval ***bvec, struct berval *bv, void *ctx )
428 if( *bvec == NULL ) {
434 *bvec = ber_memalloc_x( 2 * sizeof(struct berval *), ctx );
436 if( *bvec == NULL ) {
440 (*bvec)[0] = bv;
441 (*bvec)[1] = NULL;
446 BER_MEM_VALID( bvec );
449 for ( i = 0; (*bvec)[i] != NULL; i++ ) {
457 new = ber_memrealloc_x( *bvec, (i+2) * sizeof(struct berval *), ctx);
463 *bvec = new;
465 (*bvec)[i++] = bv;
466 (*bvec)[i] = NULL;
472 ber_bvecadd( struct berval ***bvec, struct berval *bv )
474 return ber_bvecadd_x( bvec, bv, NULL );