Added a new option --macpack-dir that allows to load the macro packages

from files instead of using the builtin ones.


git-svn-id: svn://svn.cc65.org/cc65/trunk@3587 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2005-08-24 20:05:08 +00:00
parent 4759eaebfb
commit 1f6276d21e
5 changed files with 131 additions and 36 deletions

View File

@@ -6,10 +6,10 @@
/* */
/* */
/* */
/* (C) 1998-2003 Ullrich von Bassewitz */
/* R<>merstrasse 52 */
/* D-70794 Filderstadt */
/* EMail: uz@cc65.org */
/* (C) 1998-2005, Ullrich von Bassewitz */
/* R<EFBFBD>merstrasse 52 */
/* D-70794 Filderstadt */
/* EMail: uz@cc65.org */
/* */
/* */
/* This software is provided 'as-is', without any expressed or implied */
@@ -45,10 +45,15 @@
/* Constants for the predefined packages */
#define MAC_GENERIC 0
#define MAC_LONGBRANCH 1
#define MAC_CBM 2
#define MAC_CPU 3
enum {
MAC_CBM,
MAC_CPU,
MAC_GENERIC,
MAC_LONGBRANCH,
/* Number of known packages */
MAC_COUNT
};
@@ -58,9 +63,20 @@
void InsertMacPack (unsigned Id);
int MacPackFind (const char* Name);
/* Find a macro package by name. The function will either return the id or
* -1 if the package name was not found.
*/
void MacPackInsert (int Id);
/* Insert the macro package with the given id in the input stream */
void MacPackSetDir (const char* 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.
*/
/* End of macpack.h */