aboutsummaryrefslogtreecommitdiff
path: root/jimsh.c
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2009-07-27 10:11:30 +1000
committerSteve Bennett <steveb@workware.net.au>2010-10-15 10:11:01 +1000
commit0423aa4420d853a8f81a0579910d7f39b720f851 (patch)
tree65d9210088f9986fc6a1ca25a05c044d8f024000 /jimsh.c
parentb991f24341f4eaf7da1c32f8362ccb2a2d4dc355 (diff)
downloadjimtcl-0423aa4420d853a8f81a0579910d7f39b720f851.zip
jimtcl-0423aa4420d853a8f81a0579910d7f39b720f851.tar.gz
jimtcl-0423aa4420d853a8f81a0579910d7f39b720f851.tar.bz2
Strip out unneeded junk from Jim
Nvp, getopt, move interactive processing to jim-interactive.c
Diffstat (limited to 'jimsh.c')
-rw-r--r--jimsh.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/jimsh.c b/jimsh.c
index 862617c..ef84970 100644
--- a/jimsh.c
+++ b/jimsh.c
@@ -125,12 +125,16 @@ int main(int argc, char *const argv[])
Jim_Interp *interp;
Jim_Obj *listObj;
- Jim_InitEmbedded(); /* This is the first function embedders should call. */
-
/* Create and initialize the interpreter */
interp = Jim_CreateInterp();
Jim_RegisterCoreCommands(interp);
+ /* Register static extensions */
+ Jim_AioInit(interp);
+ Jim_EventloopInit(interp);
+ Jim_RegexpInit(interp);
+ Jim_ReaddirInit(interp);
+
/* Append the path where the executed Jim binary is contained
* in the jim_libpath list. */
listObj = Jim_GetVariableStr(interp, "jim_libpath", JIM_NONE);