1
0
mirror of https://github.com/cc65/cc65.git synced 2024-07-04 13:29:35 +00:00

Added CollDeleteAll

git-svn-id: svn://svn.cc65.org/cc65/trunk@698 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2001-04-30 19:44:54 +00:00
parent abb1362389
commit ddc60c20fe
3 changed files with 18 additions and 4 deletions

View File

@ -6,7 +6,7 @@
/* */
/* */
/* */
/* (C) 2000 Ullrich von Bassewitz */
/* (C) 2000-2001 Ullrich von Bassewitz */
/* Wacholderweg 14 */
/* D-70597 Stuttgart */
/* EMail: uz@musoftware.de */
@ -211,6 +211,17 @@ void CollDelete (Collection* C, unsigned Index)
void CollDeleteAll (Collection* C)
/* Delete all items from the given collection. This will not free the items
* itself, it will only remove the pointers.
*/
{
/* This one is easy... */
C->Count = 0;
}
void CollReplace (Collection* C, void* Item, unsigned Index)
/* Replace the item at the given position. The old item will not be freed,
* just the pointer will et replaced.

View File

@ -6,7 +6,7 @@
/* */
/* */
/* */
/* (C) 2000 Ullrich von Bassewitz */
/* (C) 2000-2001 Ullrich von Bassewitz */
/* Wacholderweg 14 */
/* D-70597 Stuttgart */
/* EMail: uz@musoftware.de */
@ -108,6 +108,11 @@ void CollDelete (Collection* C, unsigned Index);
* will get moved to a lower position.
*/
void CollDeleteAll (Collection* C);
/* Delete all items from the given collection. This will not free the items
* itself, it will only remove the pointers.
*/
void CollReplace (Collection* C, void* Item, unsigned Index);
/* Replace the item at the given position. The old item will not be freed,
* just the pointer will et replaced.

View File

@ -60,5 +60,3 @@ depend dep: $(OBJS:.o=.c)
$(CC) -MM $^ > .depend