aboutsummaryrefslogtreecommitdiff
path: root/src/casm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/casm.c')
-rw-r--r--src/casm.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/casm.c b/src/casm.c
index fb50532..aadd8b3 100644
--- a/src/casm.c
+++ b/src/casm.c
@@ -506,6 +506,16 @@ static CommandStatus NULLCMD(const char *label, int argc, char *argv[],
}
+static CommandStatus IMPORT(const char *label, int argc, char *argv[],
+ int quoted[], char *err, size_t errsize)
+{
+ CMD_ARGC_CHECK(2);
+
+ return LibLoad(argv[1], LibLoadAll, err, errsize) ? CMD_OK : CMD_FAILED;
+}
+
+
+
static struct
{
const char *cmd;
@@ -558,6 +568,8 @@ static struct
{".alias", ALIAS},
{"nullcmd", NULLCMD},
{".nullcmd", NULLCMD},
+ {"import", IMPORT},
+ {".import", IMPORT},
{NULL}
};