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:
@@ -49,7 +49,7 @@
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Code */
|
||||
/* Code */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
@@ -87,6 +87,25 @@ void FreeLineInfo (LineInfo* LI)
|
||||
|
||||
|
||||
|
||||
LineInfo* DupLineInfo (const LineInfo* LI)
|
||||
/* Creates a duplicate of a line info structure */
|
||||
{
|
||||
/* Allocate memory */
|
||||
LineInfo* New = xmalloc (sizeof (LineInfo));
|
||||
|
||||
/* Copy the fields (leave id invalid) */
|
||||
New->Id = LI->Id;
|
||||
New->File = LI->File;
|
||||
New->Type = LI->Type;
|
||||
New->Pos = LI->Pos;
|
||||
New->Spans = DupSpanList (LI->Spans);
|
||||
|
||||
/* Return the copy */
|
||||
return New;
|
||||
}
|
||||
|
||||
|
||||
|
||||
LineInfo* GenLineInfo (const FilePos* Pos)
|
||||
/* Generate a new (internally used) line info with the given information */
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user