aboutsummaryrefslogtreecommitdiff
path: root/jim.h
diff options
context:
space:
mode:
authorantirez <antirez>2005-02-27 22:57:35 +0000
committerantirez <antirez>2005-02-27 22:57:35 +0000
commit1e2b529ea3d9d430598d7170435b5dd7ea01b8e2 (patch)
tree9301371839192175ca4a90a4721dae8e517d920a /jim.h
parent4de294e61179961271b5244159c9aea686ba5cb9 (diff)
downloadjimtcl-1e2b529ea3d9d430598d7170435b5dd7ea01b8e2.zip
jimtcl-1e2b529ea3d9d430598d7170435b5dd7ea01b8e2.tar.gz
jimtcl-1e2b529ea3d9d430598d7170435b5dd7ea01b8e2.tar.bz2
Jim_Alloc/Free exported to extensions.
Diffstat (limited to 'jim.h')
-rw-r--r--jim.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/jim.h b/jim.h
index 0be72b2..91ff681 100644
--- a/jim.h
+++ b/jim.h
@@ -432,6 +432,11 @@ typedef struct Jim_Reference {
#define JIM_API(x) x
#endif
+/* Memory allocation */
+void * JIM_API(Jim_Alloc) (int size);
+char * JIM_API(Jim_StrDup) (char *s);
+#define Jim_Free free
+
/* evaluation */
int JIM_API(Jim_EvalObj) (Jim_Interp *interp, Jim_Obj *scriptObjPtr);
int JIM_API(Jim_EvalObjVector) (Jim_Interp *interp, int objc, Jim_Obj **objv);