Use a collections for the line info and sort them by file/line.
git-svn-id: svn://svn.cc65.org/cc65/trunk@751 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -49,6 +49,7 @@
|
||||
|
||||
|
||||
/* common */
|
||||
#include "coll.h"
|
||||
#include "filepos.h"
|
||||
|
||||
/* ca65 */
|
||||
@@ -67,16 +68,13 @@
|
||||
*/
|
||||
typedef struct LineInfo LineInfo;
|
||||
struct LineInfo {
|
||||
LineInfo* Next; /* Pointer to next info in list */
|
||||
unsigned Usage; /* Usage counter */
|
||||
unsigned Index; /* Index */
|
||||
FilePos Pos; /* File position */
|
||||
};
|
||||
|
||||
/* Linked list of all line infos */
|
||||
extern LineInfo* LineInfoRoot;
|
||||
extern LineInfo* LineInfoLast;
|
||||
extern unsigned LineInfoCount;
|
||||
/* Collection containing all line infos */
|
||||
extern Collection LineInfoColl;
|
||||
extern unsigned LineInfoValid; /* Valid, that is, used entries */
|
||||
|
||||
/* Global pointer to last line info or NULL if not active */
|
||||
|
||||
Reference in New Issue
Block a user