[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
RE: An optimization for another day (and developer)
At 02:40 PM 2001-12-28, Howard Chu wrote:
>> -----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?
Yes. Some functions may handle multiple syntaxes.