]> git.sur5r.net Git - cc65/blobdiff - src/ca65/macpack.h
Finished implemenation of commands to delete macros. Added the new commands to
[cc65] / src / ca65 / macpack.h
index e292922591f5efbd9ec2cc740ebf7adf5e13353f..3433198d1445559360ee55ab92324bcc40475ba5 100644 (file)
@@ -6,10 +6,10 @@
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 1998     Ullrich von Bassewitz                                        */
-/*              Wacholderweg 14                                              */
-/*              D-70597 Stuttgart                                            */
-/* EMail:       uz@musoftware.de                                             */
+/* (C) 1998-2008, Ullrich von Bassewitz                                      */
+/*                Roemerstrasse 52                                           */
+/*                D-70794 Filderstadt                                        */
+/* EMail:         uz@cc65.org                                                */
 /*                                                                           */
 /*                                                                           */
 /* This software is provided 'as-is', without any expressed or implied       */
 
 
 
+/* common */
+#include "strbuf.h"
+
+
+
 /*****************************************************************************/
 /*                                          Data                                    */
 /*****************************************************************************/
 
 
 /* Constants for the predefined packages */
-#define MAC_GENERIC            0
-#define        MAC_LONGBRANCH          1
+enum {
+    MAC_ATARI,
+    MAC_CBM,
+    MAC_CPU,
+    MAC_GENERIC,
+    MAC_LONGBRANCH,
+
+    /* Number of known packages */
+    MAC_COUNT
+};
 
 
 
 
 
 
-void InsertMacPack (unsigned Id);
-/* Insert the macro package with the given id in the input stream */
+int MacPackFind (const StrBuf* Name);
+/* Find a macro package by name. The function will either return the id or
+ * -1 if the package name was not found.
+ */
+
+int MacPackInsert (int Id);
+/* Insert the macro package with the given id in the input stream. Returns
+ * true if the macro package was found and successfully inserted. Returns
+ * false otherwise.
+ */
+
+void MacPackSetDir (const StrBuf* Dir);
+/* Set a directory where files for macro packages can be found. Standard is
+ * to use the builtin packages. For debugging macro packages, external files
+ * can be used.
+ */