chiark
/
gitweb
/
~ian
/
chiark-tcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
adns compiles ish, working on transferring the rest
[chiark-tcl.git]
/
base
/
scriptinv.c
diff --git
a/base/scriptinv.c
b/base/scriptinv.c
index 482f4877e6f2683651aa2fadc665ab8938ed16e9..29651b254769d61680f542a4671d156847acea74 100644
(file)
--- a/
base/scriptinv.c
+++ b/
base/scriptinv.c
@@
-1,23
+1,23
@@
/*
*/
/*
*/
-#include "
hbytes
.h"
+#include "
chiark-tcl
.h"
-void scriptinv_init(ScriptToInvoke *si) {
+void
cht_
scriptinv_init(ScriptToInvoke *si) {
si->obj= 0;
si->xargs= 0;
}
si->obj= 0;
si->xargs= 0;
}
-void scriptinv_cancel(ScriptToInvoke *si) {
+void
cht_
scriptinv_cancel(ScriptToInvoke *si) {
if (si->obj) { Tcl_DecrRefCount(si->obj); si->obj= 0; }
if (si->xargs) { Tcl_DecrRefCount(si->xargs); si->xargs= 0; }
}
if (si->obj) { Tcl_DecrRefCount(si->obj); si->obj= 0; }
if (si->xargs) { Tcl_DecrRefCount(si->xargs); si->xargs= 0; }
}
-int scriptinv_set(ScriptToInvoke *si, Tcl_Interp *ip,
+int
cht_
scriptinv_set(ScriptToInvoke *si, Tcl_Interp *ip,
Tcl_Obj *newscript, Tcl_Obj *xargs) {
int rc, xlength;
Tcl_Obj *newscript, Tcl_Obj *xargs) {
int rc, xlength;
- scriptinv_cancel(si);
+
cht_
scriptinv_cancel(si);
rc= Tcl_ListObjLength(ip, newscript, &si->llength); if (rc) return rc;
Tcl_IncrRefCount(newscript);
rc= Tcl_ListObjLength(ip, newscript, &si->llength); if (rc) return rc;
Tcl_IncrRefCount(newscript);
@@
-34,7
+34,7
@@
int scriptinv_set(ScriptToInvoke *si, Tcl_Interp *ip,
return 0;
}
return 0;
}
-void scriptinv_invoke(ScriptToInvoke *si, int argc, Tcl_Obj *const *argv) {
+void
cht_
scriptinv_invoke(ScriptToInvoke *si, int argc, Tcl_Obj *const *argv) {
Tcl_Obj *invoke=0;
int i, rc;
Tcl_Obj *invoke=0;
int i, rc;