[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.c

C Containers library

jacob navia

8/26/2011 1:55:00 PM

The C Containers library project aims to provide a portable
specification of a container library for the C language.

A sample implementation of the specification is provided, available at
no cost.

Available containers are:

o lists (single/double linked)
o vectors (extensible arrays)
o valarrays (numeric arrays, extensible)
o hash tables
o trees
o string collections
o string lists
o bitstrings
o bloom filters

auxiliary interfaces to heap management are provided.

The full documentation and the source code is available
at no cost from

http://code.google...

The string list container is the latest addition to the library.

Comments about the source code are welcome.

jacob
1 Answer

HENRY Eshbaugh

8/29/2011 2:10:00 PM

0

On Aug 26, 9:55 am, jacob navia <ja...@spamsink.net> wrote:
> The C Containers library project aims to provide a portable
> specification of a container library for the C language.
>
> A sample implementation of the specification is provided, available at
> no cost.
>
> Available containers are:
>
> o lists (single/double linked)
> o vectors (extensible arrays)
> o valarrays (numeric arrays, extensible)
> o hash tables
> o trees
> o string collections
> o string lists
> o bitstrings
> o bloom filters
>
> auxiliary interfaces to heap management are provided.
>
> The full documentation and the source code is available
> at no cost from
>
> http://code.google...
>
> The string list container is the latest addition to the library.
>
> Comments about the source code are welcome.
>
> jacob

Get a bloody coding style. Seriously, your style _SUCKS_. It's
inconsistent. From list.c:


static int DefaultListCompareFunction(const void *left,const void
*right,CompareInfo *ExtraArgs)


static list_element *new_link(List *li,void *data,const char *fname)


static int Clear_nd(List *l)

That's not one, but _THREE_ different coding styles in the space of 50
lines.

My remedy: K&R, underscores.