Added DelCodeEntries
git-svn-id: svn://svn.cc65.org/cc65/trunk@730 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -527,6 +527,21 @@ void DelCodeEntry (CodeSeg* S, unsigned Index)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
void DelCodeEntries (CodeSeg* S, unsigned Start, unsigned Count)
|
||||||
|
/* Delete a range of code entries. This includes removing references to labels,
|
||||||
|
* labels attached to the entries and so on.
|
||||||
|
*/
|
||||||
|
{
|
||||||
|
/* Start deleting the entries from the rear, because this involves less
|
||||||
|
* memory moving.
|
||||||
|
*/
|
||||||
|
while (Count--) {
|
||||||
|
DelCodeEntry (S, Start + Count);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
struct CodeEntry* GetNextCodeEntry (CodeSeg* S, unsigned Index)
|
struct CodeEntry* GetNextCodeEntry (CodeSeg* S, unsigned Index)
|
||||||
/* Get the code entry following the one with the index Index. If there is no
|
/* Get the code entry following the one with the index Index. If there is no
|
||||||
* following code entry, return NULL.
|
* following code entry, return NULL.
|
||||||
|
|||||||
@@ -107,6 +107,11 @@ void DelCodeEntry (CodeSeg* S, unsigned Index);
|
|||||||
* if the reference count drops to zero.
|
* if the reference count drops to zero.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
void DelCodeEntries (CodeSeg* S, unsigned Start, unsigned Count);
|
||||||
|
/* Delete a range of code entries. This includes removing references to labels,
|
||||||
|
* labels attached to the entries and so on.
|
||||||
|
*/
|
||||||
|
|
||||||
#if defined(HAVE_INLINE)
|
#if defined(HAVE_INLINE)
|
||||||
INLINE struct CodeEntry* GetCodeEntry (CodeSeg* S, unsigned Index)
|
INLINE struct CodeEntry* GetCodeEntry (CodeSeg* S, unsigned Index)
|
||||||
/* Get an entry from the given code segment */
|
/* Get an entry from the given code segment */
|
||||||
|
|||||||
Reference in New Issue
Block a user