| 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 |
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 |
/* (pstring x) - - -- --- ----- -------- */ |
| 33 |
{ |
| 34 |
_x.s = Tcl_GetStringFromObj(ov[1], &(_x.len)); |
| 35 |
_x.o = ov[1]; } |
| 36 |
|
| 37 |
/* Call - - -- --- ----- -------- */ |
| 38 |
c__aproc0(_x); |
| 39 |
|
| 40 |
/* (void return) - - -- --- ----- -------- */ |
| 41 |
return critcl_trace_cmd_result (TCL_OK, interp); |
| 42 |
} |