aboutsummaryrefslogtreecommitdiff
path: root/jim-posix.c
diff options
context:
space:
mode:
authorantirez <antirez>2005-03-05 12:22:35 +0000
committerantirez <antirez>2005-03-05 12:22:35 +0000
commitf98fbeebe0d54c010cc692edcbd9d3c360304e79 (patch)
tree4d0f86f40d8d73f1c21f5ea302f20036a7243147 /jim-posix.c
parentf97a5a2903b3fbadb0dc0b10143bcf6200d6c937 (diff)
downloadjimtcl-f98fbeebe0d54c010cc692edcbd9d3c360304e79.zip
jimtcl-f98fbeebe0d54c010cc692edcbd9d3c360304e79.tar.gz
jimtcl-f98fbeebe0d54c010cc692edcbd9d3c360304e79.tar.bz2
delProc callback added to Jim_CreateCommand().
Core commands handling updated to respect the new sematic.
Diffstat (limited to 'jim-posix.c')
-rw-r--r--jim-posix.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/jim-posix.c b/jim-posix.c
index 940f0dd..feba435 100644
--- a/jim-posix.c
+++ b/jim-posix.c
@@ -1,7 +1,7 @@
/* Jim - POSIX extension
* Copyright 2005 Salvatore Sanfilippo <antirez@invece.org>
*
- * $Id: jim-posix.c,v 1.10 2005/03/05 12:13:30 antirez Exp $
+ * $Id: jim-posix.c,v 1.11 2005/03/05 12:22:35 antirez Exp $
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -124,10 +124,10 @@ static int Jim_PosixSethostnameCommand(Jim_Interp *interp, int argc,
int Jim_OnLoad(Jim_Interp *interp)
{
Jim_InitExtension(interp, "1.0");
- Jim_CreateCommand(interp, "os.fork", Jim_PosixForkCommand, NULL);
- Jim_CreateCommand(interp, "os.sleep", Jim_PosixSleepCommand, NULL);
- Jim_CreateCommand(interp, "os.getids", Jim_PosixGetidsCommand, NULL);
- Jim_CreateCommand(interp, "os.gethostname", Jim_PosixGethostnameCommand, NULL);
- Jim_CreateCommand(interp, "os.sethostname", Jim_PosixSethostnameCommand, NULL);
+ Jim_CreateCommand(interp, "os.fork", Jim_PosixForkCommand, NULL, NULL);
+ Jim_CreateCommand(interp, "os.sleep", Jim_PosixSleepCommand, NULL, NULL);
+ Jim_CreateCommand(interp, "os.getids", Jim_PosixGetidsCommand, NULL, NULL);
+ Jim_CreateCommand(interp, "os.gethostname", Jim_PosixGethostnameCommand, NULL, NULL);
+ Jim_CreateCommand(interp, "os.sethostname", Jim_PosixSethostnameCommand, NULL, NULL);
return JIM_OK;
}