]> git.sur5r.net Git - cc65/blobdiff - src/ca65/symbol.h
Finished implemenation of commands to delete macros. Added the new commands to
[cc65] / src / ca65 / symbol.h
index 6282a0f5ac005b6dcfe2f0d4de431e68457c303d..b790fcacb32ef96de13409177e231c74c6c9d876 100644 (file)
@@ -6,10 +6,10 @@
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 1998-2003 Ullrich von Bassewitz                                       */
-/*               Römerstraße 52                                              */
-/*               D-70794 Filderstadt                                         */
-/* EMail:        uz@cc65.org                                                 */
+/* (C) 1998-2010, Ullrich von Bassewitz                                      */
+/*                Roemerstrasse 52                                           */
+/*                D-70794 Filderstadt                                        */
+/* EMail:         uz@cc65.org                                                */
 /*                                                                           */
 /*                                                                           */
 /* This software is provided 'as-is', without any expressed or implied       */
@@ -55,14 +55,13 @@ struct SymTable;
 
 
 
-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 SymTable* ParseScopedIdent (struct StrBuf* Name, struct StrBuf* FullName);
+/* Parse a (possibly scoped) identifer. 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);
@@ -75,6 +74,11 @@ struct SymTable* ParseScopedSymTable (void);
  * symbol space and return the symbol table struct.
  */
 
+struct SymEntry* ParseAnySymName (int AllocNew);
+/* Parse a cheap local symbol or a a (possibly scoped) symbol name, search
+ * for it in the symbol table and return the symbol table entry.
+ */
+
 
 
 /* End of symbol.h */