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

@@ -1206,14 +1206,6 @@ static void DoLocalChar (void)
static void DoMacPack (void)
/* Insert a macro package */
{
/* Macro package names */
static const char* Keys [] = {
"GENERIC",
"LONGBRANCH",
"CBM",
"CPU"
};
int Package;
/* We expect an identifier */
@@ -1222,8 +1214,8 @@ static void DoMacPack (void)
return;
}
/* Map the keyword to a number */
Package = GetSubKey (Keys, sizeof (Keys) / sizeof (Keys [0]));
/* Search for the macro package name */
Package = MacPackFind (SVal);
if (Package < 0) {
/* Not found */
ErrorSkip ("Invalid macro package");
@@ -1234,7 +1226,7 @@ static void DoMacPack (void)
NextTok ();
/* Insert the package */
InsertMacPack (Package);
MacPackInsert (Package);
}