-int pat_charfrom(Tcl_Interp *ip, Tcl_Obj *obj, int *val,
- const char *opts, const char *what) {
- *val= enum1_lookup_cached_func(ip,obj,opts,what);
- if (*val==-1) return TCL_ERROR;
- return TCL_OK;
-}
-
-int pat_enum(Tcl_Interp *ip, Tcl_Obj *obj, const void **val,
- const void *opts, size_t sz, const char *what) {
- *val= enum_lookup_cached_func(ip,obj,opts,sz,what);
- if (!*val) return TCL_ERROR;
- return TCL_OK;
-}
-
-int pat_obj(Tcl_Interp *ip, Tcl_Obj *obj, Tcl_Obj **val) {
- *val= obj;
- return TCL_OK;
-}
-
-int pat_int(Tcl_Interp *ip, Tcl_Obj *obj, int *val) {
- return Tcl_GetIntFromObj(ip, obj, val);
-}
-
-int pat_hbv(Tcl_Interp *ip, Tcl_Obj *var, HBytes_Var *agg) {