aboutsummaryrefslogtreecommitdiff
path: root/jim.h
diff options
context:
space:
mode:
authorantirez <antirez>2005-03-04 14:09:29 +0000
committerantirez <antirez>2005-03-04 14:09:29 +0000
commit960d455c9252fd279ac630bbc4d2e74082f8dec7 (patch)
treef35c2945a3c2a21705cd4caa87bcd75832680f23 /jim.h
parent0186c61bc68f61772d528933584fdb6dc188a95d (diff)
downloadjimtcl-960d455c9252fd279ac630bbc4d2e74082f8dec7.zip
jimtcl-960d455c9252fd279ac630bbc4d2e74082f8dec7.tar.gz
jimtcl-960d455c9252fd279ac630bbc4d2e74082f8dec7.tar.bz2
jim::libpath renamed into jim.libpath. Also there was a bug listed
in the BUG file about jim.libpath lookup performed using the local variable API that's now fixed. In order to fix the problem the new API call Jim_GetGlobalVariableStr() was added. Jim_GetVariableStr() and Jim_GetGlobalVariableStr() are now exported.
Diffstat (limited to 'jim.h')
-rw-r--r--jim.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/jim.h b/jim.h
index 34aec05..e4e91e7 100644
--- a/jim.h
+++ b/jim.h
@@ -1,7 +1,7 @@
/* Jim - A small embeddable Tcl interpreter
* Copyright 2005 Salvatore Sanfilippo <antirez@invece.org>
*
- * $Id: jim.h,v 1.31 2005/03/04 12:32:21 antirez Exp $
+ * $Id: jim.h,v 1.32 2005/03/04 14:09:29 antirez Exp $
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -586,6 +586,10 @@ JIM_STATIC int JIM_API(Jim_SetVariableLink) (Jim_Interp *interp,
Jim_CallFrame *targetCallFrame);
JIM_STATIC Jim_Obj * JIM_API(Jim_GetVariable) (Jim_Interp *interp,
Jim_Obj *nameObjPtr, int flags);
+JIM_STATIC Jim_Obj * JIM_API(Jim_GetVariableStr) (Jim_Interp *interp,
+ const char *name, int flags);
+JIM_STATIC Jim_Obj * JIM_API(Jim_GetGlobalVariableStr) (Jim_Interp *interp,
+ const char *name, int flags);
JIM_STATIC int JIM_API(Jim_UnsetVariable) (Jim_Interp *interp,
Jim_Obj *nameObjPtr, int flags);
@@ -775,6 +779,8 @@ static void Jim_InitExtension(Jim_Interp *interp, const char *version)
JIM_GET_API(Panic);
JIM_GET_API(StrDup);
JIM_GET_API(UnsetVariable);
+ JIM_GET_API(GetVariableStr);
+ JIM_GET_API(GetGlobalVariableStr);
Jim_SetResultString(interp, version, -1);
}