CVS update: samba/source/lib

Luke Kenneth Casson Leighton lkcl at samba.org
Wed Jul 19 08:33:07 EST 2000


On Tue, 18 Jul 2000, Gerald Carter wrote:

> 
> Date:	Tuesday July 18, 2000 @ 15:12
> Author:	jerry
> 
> Update of /data/cvs/samba/source/lib
> In directory samba:/tmp/cvs-serv3704
> 
> Added Files:
> 	util_list.c 
> Log Message:
> I really didn't like the way generic arrays (lists) were
> implemented in util_array.c so I wrote a smaller (and simplier
> package).  
> 
> I would like to replace the use of util_array.c functions 
> in the rest of the source tree if no one objects.


i object.  if you want a list-associating "thing", use a list.  in the
cases where you want an array-associating "thing" use an array.

please do not just randomly replace occurrences of code where an array is
used because an array is the optiml data structure to use.

the whole point of the array code is that you can do this:

array[index]->structmember

and then you can free the entire array _and_ the dynamically allocated
pointers-to-array-items with a single function call.

thx.








More information about the samba-cvs mailing list