Debian Codegraph @

test/assets/cproc-trace/4.12-bytes

raw
1 /* ---------------------------------------------------------------------- */
2
3 #define ns__aproc0 "::aproc"
4 #ifndef CRITCL_bytes
5 #define CRITCL_bytes
6
7 typedef struct critcl_bytes {
8 Tcl_Obj* o;
9 const unsigned char* s;
10 Tcl_Size len;
11 } critcl_bytes;
12
13 #endif /* CRITCL_bytes _________ */
14
15 static void c__aproc0(critcl_bytes x)
16 {
17
18 }
19
20 static int
21 tcl__aproc0(ClientData cd, Tcl_Interp *interp, Tcl_Size oc, Tcl_Obj *CONST ov[])
22 {
23 critcl_bytes _x;
24
25 critcl_trace_cmd_args (ns__aproc0, oc, ov);
26
27 if (oc != 2) {
28 Tcl_WrongNumArgs(interp, 1, ov, "x");
29 return critcl_trace_cmd_result (TCL_ERROR, interp);
30 }
31
32 /* (bytes x) - - -- --- ----- -------- */
33 {
34 /* Raw binary string _with_ length information */
35 _x.s = Tcl_GetBytesFromObj(interp, ov[1], &(_x.len));
36 if (_x.s == NULL) return critcl_trace_cmd_result (TCL_ERROR, interp);
37 _x.o = ov[1]; }
38
39 /* Call - - -- --- ----- -------- */
40 c__aproc0(_x);
41
42 /* (void return) - - -- --- ----- -------- */
43 return critcl_trace_cmd_result (TCL_OK, interp);
44 }