]> git.sur5r.net Git - cc65/blobdiff - src/ca65/symbol.h
New module strstack
[cc65] / src / ca65 / symbol.h
index e8e1fa950c09cb4c1dc51d8a71d8804f84d3dc37..6282a0f5ac005b6dcfe2f0d4de431e68457c303d 100644 (file)
 
 
 /*****************************************************************************/
-/*                                          Data                                    */
+/*                                 Forwards                                  */
 /*****************************************************************************/
 
 
 
+struct StrBuf;
+struct SymTable;
+
+
+
 /*****************************************************************************/
 /*                                          Code                                    */
 /*****************************************************************************/
 
 
 
+struct SymTable* ParseScopedIdent (char* Name, struct StrBuf* FullName);
+/* Parse a (possibly scoped) identifer. Name must point to a buffer big enough
+ * to hold such an identifier. The scope of the name must exist and is returned
+ * as function result, while the last part (the identifier) which may be either
+ * a symbol or a scope depending on the context is returned in Name. FullName
+ * is a string buffer that is used to store the full name of the identifier
+ * including the scope. It is used internally and may be used by the caller
+ * for error messages or similar.
+ */
+
 struct SymEntry* ParseScopedSymName (int AllowNew);
 /* Parse a (possibly scoped) symbol name, search for it in the symbol table
  * and return the symbol table entry.
- */                                  
+ */
 
-struct SymTable* ParseScopedSymTable (int AllocNew);
+struct SymTable* ParseScopedSymTable (void);
 /* Parse a (possibly scoped) symbol table (scope) name, search for it in the
  * symbol space and return the symbol table struct.
  */