bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

interest in extensible array module?


From: Riccardo Murri
Subject: interest in extensible array module?
Date: Sun, 21 Nov 2010 11:47:23 +0100

Hello GNUlib authors,

I wrote an "extensible array" code as part of a larger project, and
thought it could be of some interest to GNUlib.  However, I'm not sure
it does not fall into the category of "stuff that would be better
packaged separately", so I'm inquiring here first, before wrapping it
up properly as a patch.

The "XARRAY" macro creates an array of any given C type (plus some
optional headers), and defines functions to append/remove/insert
elements into the array.  Documentation is in the attached C header file;
the test case shows a usage sample.

Best regards,
Riccardo

Attachment: xarray.h
Description: Text Data

Attachment: test-xarray.c
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]