[Date Prev][Date Next] [Chronological] [Thread] [Top]

RE: An optimization for another day (and developer)



> -----Original Message-----
> From: owner-openldap-devel@OpenLDAP.org
> [mailto:owner-openldap-devel@OpenLDAP.org]On Behalf Of Kurt D. Zeilenga

> At 07:05 AM 2001-12-28, Pierangelo Masarati wrote:
> >> BTW, one optimization I intended to implement but haven't
> >> the time is to allow:
> >>       struct berval bv = { 0, NULL }
> >>       struct berval *bvp = &bv;
> >> 
> >>       rc = dnPretty( NULL, &dn, &bvp );
> >>       rc = dnNormalize( NULL, &dn, &bvp );
> >> 
> >> That is, allow call to provide, optionally, a
> >> pre-allocated struct berval instead of relying
> >> on the caller to malloc on up.  Of course, in
> >> some cases, the existing behavior is preferred.

One question - it seems that the first parameter (syntax) is never used.
Why is it present on the parameter list? Is this an item for future work?

  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun
  http://www.symas.com               http://highlandsun.com/hyc  
  Symas: Premier OpenSource Development and Support