Allow static initialization of collections
git-svn-id: svn://svn.cc65.org/cc65/trunk@308 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -56,6 +56,9 @@ struct Collection {
|
||||
void** Items; /* Array with dynamic size */
|
||||
};
|
||||
|
||||
/* Initializer for static collections */
|
||||
#define STATIC_COLLECTION_INITIALIZER { 0, 0, 0 }
|
||||
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
@@ -73,7 +76,7 @@ void DoneCollection (Collection* C);
|
||||
*/
|
||||
|
||||
Collection* NewCollection (void);
|
||||
/* Create and return a new collection with the given initial size */
|
||||
/* Create and return a new collection */
|
||||
|
||||
void FreeCollection (Collection* C);
|
||||
/* Free a collection */
|
||||
|
||||
Reference in New Issue
Block a user