]> git.sur5r.net Git - cc65/blobdiff - src/ca65/sizeof.h
Removed (pretty inconsistently used) tab chars from source code base.
[cc65] / src / ca65 / sizeof.h
index d77ddf21091a6c0a4e02e331ed7e3f8f512d3d62..2bb400d83bb8bf24b1c129c70e3d3837bc483e73 100644 (file)
@@ -6,7 +6,7 @@
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 2003-2008, Ullrich von Bassewitz                                      */
+/* (C) 2003-2011, Ullrich von Bassewitz                                      */
 /*                Roemerstrasse 52                                           */
 /*                D-70794 Filderstadt                                        */
 /* EMail:         uz@cc65.org                                                */
@@ -35,7 +35,7 @@
 
 #ifndef SIZEOF_H
 #define SIZEOF_H
-                                          
+
 
 
 /* common */
@@ -55,20 +55,25 @@ struct SymTable;
 
 
 /*****************************************************************************/
-/*                                          Data                                    */
+/*                                   Code                                    */
 /*****************************************************************************/
 
 
 
-extern const StrBuf SizeEntryName;      /* Contains name of symbol with size */
-
-
-
-/*****************************************************************************/
-/*                                          Code                                    */
-/*****************************************************************************/
+int IsSizeOfSymbol (const struct SymEntry* Sym);
+/* Return true if the given symbol is the one that encodes the size of some
+ * entity. Sym may also be a NULL pointer in which case false is returned.
+ */
 
+struct SymEntry* FindSizeOfScope (struct SymTable* Scope);
+/* Get the size of a scope. The function returns the symbol table entry that
+ * encodes the size or NULL if there is no such entry.
+ */
 
+struct SymEntry* FindSizeOfSymbol (struct SymEntry* Sym);
+/* Get the size of a symbol table entry. The function returns the symbol table
+ * entry that encodes the size of the symbol or NULL if there is no such entry.
+ */
 
 struct SymEntry* GetSizeOfScope (struct SymTable* Scope);
 /* Get the size of a scope. The function returns the symbol table entry that