/* */
/* */
/* */
-/* (C) 1998-2010, Ullrich von Bassewitz */
+/* (C) 1998-2011, Ullrich von Bassewitz */
/* Roemerstrasse 52 */
/* D-70794 Filderstadt */
/* EMail: uz@cc65.org */
struct SymTable* Tab; /* Table this symbol is in */
struct SymEntry* Entry;
} Sym;
- FilePos Pos; /* File position for this symbol */
+ Collection LineInfos; /* Line infos for this symbol */
FilePos* GuessedUse[1]; /* File position where symbol
* address size was guessed, and the
* smallest possible addressing was NOT
# define SymIsVar(S) (((S)->Flags & SF_VAR) != 0)
#endif
-int SymIsConst (SymEntry* Sym, long* Val);
+int SymIsConst (const SymEntry* Sym, long* Val);
/* Return true if the given symbol has a constant value. If Val is not NULL
* and the symbol has a constant value, store it's value there.
*/
unsigned GetSymImportId (const SymEntry* Sym);
/* Return the import id for the given symbol */
-#if defined(HAVE_INLINE)
-INLINE const FilePos* GetSymPos (const SymEntry* S)
+unsigned GetSymInfoFlags (const SymEntry* Sym, long* ConstVal);
+/* Return a set of flags used when writing symbol information into a file.
+ * If the SYM_CONST bit is set, ConstVal will contain the constant value
+ * of the symbol. The result does not include the condes count.
+ * See common/symdefs.h for more information.
+ */
+
+const FilePos* GetSymPos (const SymEntry* S);
/* Return the position of first occurence in the source for the given symbol */
-{
- return &S->Pos;
-}
-#else
-# define GetSymPos(S) (&(S)->Pos)
-#endif