aboutsummaryrefslogtreecommitdiff
path: root/jim-aio.c
diff options
context:
space:
mode:
authorantirez <antirez>2005-03-31 12:20:21 +0000
committerantirez <antirez>2005-03-31 12:20:21 +0000
commit6b53d12f84d9a2f2efa810038ce4a7c2146de928 (patch)
tree48d07e7d070b9c8f598ac932b98950ca3a65f088 /jim-aio.c
parent15dc45ec7c7c6f9e31300b6c025f46d8adec16d8 (diff)
downloadjimtcl-6b53d12f84d9a2f2efa810038ce4a7c2146de928.zip
jimtcl-6b53d12f84d9a2f2efa810038ce4a7c2146de928.tar.gz
jimtcl-6b53d12f84d9a2f2efa810038ce4a7c2146de928.tar.bz2
Implemented the C API "background" for the packages system of Jim.
Diffstat (limited to 'jim-aio.c')
-rw-r--r--jim-aio.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/jim-aio.c b/jim-aio.c
index dfcf035..a8b06ae 100644
--- a/jim-aio.c
+++ b/jim-aio.c
@@ -1,7 +1,7 @@
/* Jim - ANSI I/O extension
* Copyright 2005 Salvatore Sanfilippo <antirez@invece.org>
*
- * $Id: jim-aio.c,v 1.6 2005/03/16 16:28:34 antirez Exp $
+ * $Id: jim-aio.c,v 1.7 2005/03/31 12:20:21 antirez Exp $
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -265,7 +265,9 @@ static int JimAioOpenCommand(Jim_Interp *interp, int argc,
int Jim_OnLoad(Jim_Interp *interp)
{
- Jim_InitExtension(interp, "1.0");
+ Jim_InitExtension(interp);
+ if (Jim_PackageProvide(interp, "aio", "1.0", JIM_ERRMSG) != JIM_OK)
+ return JIM_ERR;
Jim_CreateCommand(interp, "aio.open", JimAioOpenCommand, NULL, NULL);
return JIM_OK;
}