Debian Codegraph @

test/assets/cproc/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 if (oc != 2) {
26 Tcl_WrongNumArgs(interp, 1, ov, "x");
27 return TCL_ERROR;
28 }
29
30 /* (bytes x) - - -- --- ----- -------- */
31 {
32 /* Raw binary string _with_ length information */
33 _x.s = Tcl_GetBytesFromObj(interp, ov[1], &(_x.len));
34 if (_x.s == NULL) return TCL_ERROR;
35 _x.o = ov[1]; }
36
37 /* Call - - -- --- ----- -------- */
38 c__aproc0(_x);
39
40 /* (void return) - - -- --- ----- -------- */
41 return TCL_OK;
42 }