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
ulong improved; clock arithmetic hbytes abolished; secnet responder implemented and...
[chiark-tcl.git]
/
hbytes
/
parse.c
diff --git
a/hbytes/parse.c
b/hbytes/parse.c
index c203be15ea7621f806e02601b85273ea7c99e4ec..5e1f918d99d886a829fb06c8cf8afefa5888cb91 100644
(file)
--- a/
hbytes/parse.c
+++ b/
hbytes/parse.c
@@
-26,6
+26,10
@@
int pat_int(Tcl_Interp *ip, Tcl_Obj *obj, int *val) {
return Tcl_GetIntFromObj(ip, obj, val);
}
return Tcl_GetIntFromObj(ip, obj, val);
}
+int pat_long(Tcl_Interp *ip, Tcl_Obj *obj, long *val) {
+ return Tcl_GetLongFromObj(ip, obj, val);
+}
+
int pat_hbv(Tcl_Interp *ip, Tcl_Obj *var, HBytes_Var *agg) {
int rc;
Tcl_Obj *val;
int pat_hbv(Tcl_Interp *ip, Tcl_Obj *var, HBytes_Var *agg) {
int rc;
Tcl_Obj *val;
@@
-81,6
+85,10
@@
Tcl_Obj *ret_int(Tcl_Interp *ip, int val) {
return Tcl_NewIntObj(val);
}
return Tcl_NewIntObj(val);
}
+Tcl_Obj *ret_long(Tcl_Interp *ip, long val) {
+ return Tcl_NewLongObj(val);
+}
+
Tcl_Obj *ret_obj(Tcl_Interp *ip, Tcl_Obj *val) {
return val;
}
Tcl_Obj *ret_obj(Tcl_Interp *ip, Tcl_Obj *val) {
return val;
}