Added functions taking and returning consts

git-svn-id: svn://svn.cc65.org/cc65/trunk@367 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2000-10-15 09:24:21 +00:00
parent bca9028cea
commit 669d063e75
2 changed files with 32 additions and 2 deletions

View File

@@ -81,7 +81,7 @@ Collection* NewCollection (void);
void FreeCollection (Collection* C);
/* Free a collection */
unsigned CollCount (Collection* C);
unsigned CollCount (const Collection* C);
/* Return the number of items in the collection */
void CollInsert (Collection* C, void* Item, unsigned Index);
@@ -93,9 +93,15 @@ void CollAppend (Collection* C, void* Item);
void* CollAt (Collection* C, unsigned Index) attribute ((const));
/* Return the item at the given index */
const void* CollConstAt (const Collection* C, unsigned Index) attribute ((const));
/* Return the item at the given index */
void* CollLast (Collection* C);
/* Return the last item in a collection */
const void* CollConstLast (const Collection* C);
/* Return the last item in a collection */
void CollDelete (Collection* C, unsigned Index);
/* Remove the item with the given index from the collection. This will not
* free the item itself, just the pointer. All items with higher indices