Added a new attribute IMPORT to the CONDES definition of the FEATURES section.
If this attribute is defined, an import for the given symbol is added to the module that contains the condes declaraction. Using this feature, it is possible to force linkage of a module that contains an export for the symbol. git-svn-id: svn://svn.cc65.org/cc65/trunk@5900 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -139,6 +139,23 @@ unsigned* ReadSpanList (FILE* F)
|
||||
|
||||
|
||||
|
||||
unsigned* DupSpanList (const unsigned* S)
|
||||
/* Duplicate a span list */
|
||||
{
|
||||
unsigned Size;
|
||||
|
||||
/* The list may be empty */
|
||||
if (S == 0) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Allocate memory, copy and return the new list */
|
||||
Size = (*S + 1) * sizeof (*S);
|
||||
return memcpy (xmalloc (Size), S, Size);
|
||||
}
|
||||
|
||||
|
||||
|
||||
void FreeSpan (Span* S)
|
||||
/* Free a span structure */
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user