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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user