/* ---------------------------------------------------------------------- */ #define ns__aproc0 "::aproc" #ifndef CRITCL_bytes #define CRITCL_bytes typedef struct critcl_bytes { Tcl_Obj* o; const unsigned char* s; Tcl_Size len; } critcl_bytes; #endif /* CRITCL_bytes _________ */ static void c__aproc0(critcl_bytes x) { } static int tcl__aproc0(ClientData cd, Tcl_Interp *interp, Tcl_Size oc, Tcl_Obj *CONST ov[]) { critcl_bytes _x; critcl_trace_cmd_args (ns__aproc0, oc, ov); if (oc != 2) { Tcl_WrongNumArgs(interp, 1, ov, "x"); return critcl_trace_cmd_result (TCL_ERROR, interp); } /* (bytes x) - - -- --- ----- -------- */ { /* Raw binary string _with_ length information */ _x.s = Tcl_GetBytesFromObj(interp, ov[1], &(_x.len)); if (_x.s == NULL) return critcl_trace_cmd_result (TCL_ERROR, interp); _x.o = ov[1]; } /* Call - - -- --- ----- -------- */ c__aproc0(_x); /* (void return) - - -- --- ----- -------- */ return critcl_trace_cmd_result (TCL_OK, interp); }