summaryrefslogtreecommitdiff
path: root/src/helper/jim.h
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-12-16 21:10:06 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-12-16 21:10:06 +0000
commit439a187ea146146e9dc008df5c7511d4c13ded5c (patch)
tree1907090860c1013fed00903f9135df9066071e02 /src/helper/jim.h
parenta39f2a58f8fd6fa7c9fd7c5a1cb6ffd1ba3da05b (diff)
downloadopenocd+libswd-439a187ea146146e9dc008df5c7511d4c13ded5c.tar.gz
openocd+libswd-439a187ea146146e9dc008df5c7511d4c13ded5c.tar.bz2
openocd+libswd-439a187ea146146e9dc008df5c7511d4c13ded5c.tar.xz
openocd+libswd-439a187ea146146e9dc008df5c7511d4c13ded5c.zip
sync up to latest jim tcl
git-svn-id: svn://svn.berlios.de/openocd/trunk@1250 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/helper/jim.h')
-rw-r--r--src/helper/jim.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/helper/jim.h b/src/helper/jim.h
index 3c049729..7ee82352 100644
--- a/src/helper/jim.h
+++ b/src/helper/jim.h
@@ -164,6 +164,7 @@ extern "C" {
#define JIM_CONTINUE 4
#define JIM_EVAL 5
#define JIM_EXIT 6
+#define JIM_ERR_ADDSTACK 7
#define JIM_MAX_NESTING_DEPTH 10000 /* default max nesting depth */
/* Some function get an integer argument with flags to change
@@ -530,6 +531,7 @@ typedef struct Jim_Interp {
struct Jim_HashTable sharedStrings; /* Shared Strings hash table */
Jim_Obj *stackTrace; /* Stack trace object. */
Jim_Obj *unknown; /* Unknown command cache */
+ int unknown_called; /* The unknown command has been invoked */
int errorFlag; /* Set if an error occurred during execution. */
int evalRetcodeLevel; /* Level where the last return with code JIM_EVAL
happened. */
@@ -560,6 +562,7 @@ typedef struct Jim_Interp {
* cached can no longer considered valid. */
#define Jim_InterpIncrProcEpoch(i) (i)->procEpoch++
#define Jim_SetResultString(i,s,l) Jim_SetResult(i, Jim_NewStringObj(i,s,l))
+#define Jim_SetResultInt(i,intval) Jim_SetResult(i, Jim_NewIntObj(i,intval))
#define Jim_SetEmptyResult(i) Jim_SetResult(i, (i)->emptyObj)
#define Jim_GetResult(i) ((i)->result)
#define Jim_CmdPrivData(i) ((i)->cmdPrivData)
@@ -1296,7 +1299,7 @@ static void Jim_InitExtension(Jim_Interp *interp)
JIM_GET_API(Nvp_name2value);
JIM_GET_API(Nvp_name2value_nocase);
JIM_GET_API(Nvp_name2value_simple);
-
+
JIM_GET_API(Nvp_value2name);
JIM_GET_API(Nvp_value2name_simple);
@@ -1337,3 +1340,10 @@ static __inline__ void Jim_InitEmbedded(void) {
#endif
#endif /* __JIM__H */
+
+/*
+ * Local Variables: ***
+ * c-basic-offset: 4 ***
+ * tab-width: 4 ***
+ * End: ***
+ */