Debian Codegraph @

test/assets/cproc/4.8-pstring

raw
1 /* ---------------------------------------------------------------------- */
2
3 #define ns__aproc0 "::aproc"
4 #ifndef CRITCL_pstring
5 #define CRITCL_pstring
6
7 typedef struct critcl_pstring {
8 Tcl_Obj* o;
9 const char* s;
10 Tcl_Size len;
11 } critcl_pstring;
12
13 #endif /* CRITCL_pstring _________ */
14
15 static void c__aproc0(critcl_pstring 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_pstring _x;
24
25 if (oc != 2) {
26 Tcl_WrongNumArgs(interp, 1, ov, "x");
27 return TCL_ERROR;
28 }
29
30 /* (pstring x) - - -- --- ----- -------- */
31 {
32 _x.s = Tcl_GetStringFromObj(ov[1], &(_x.len));
33 _x.o = ov[1]; }
34
35 /* Call - - -- --- ----- -------- */
36 c__aproc0(_x);
37
38 /* (void return) - - -- --- ----- -------- */
39 return TCL_OK;
40 }