1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-19 06:31:31 +00:00

Added AUTO_COLLECTION_INITIALIZER

git-svn-id: svn://svn.cc65.org/cc65/trunk@977 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2001-09-27 05:54:40 +00:00
parent 3752afa685
commit 371fcf48da
2 changed files with 17 additions and 0 deletions

View File

@ -45,6 +45,17 @@
/*****************************************************************************/
/* Data */
/*****************************************************************************/
/* An empty collection */
const Collection EmptyCollection = STATIC_COLLECTION_INITIALIZER;
/*****************************************************************************/ /*****************************************************************************/
/* Code */ /* Code */
/*****************************************************************************/ /*****************************************************************************/

View File

@ -59,9 +59,15 @@ struct Collection {
void** Items; /* Array with dynamic size */ void** Items; /* Array with dynamic size */
}; };
/* An empty collection */
extern const Collection EmptyCollection;
/* Initializer for static collections */ /* Initializer for static collections */
#define STATIC_COLLECTION_INITIALIZER { 0, 0, 0 } #define STATIC_COLLECTION_INITIALIZER { 0, 0, 0 }
/* Initializer for auto collections */
#define AUTO_COLLECTION_INITIALIZER EmptyCollection;
/*****************************************************************************/ /*****************************************************************************/