search for: tcl_decrrefcount

Displaying 1 result from an estimated 1 matches for "tcl_decrrefcount".

2018 Jul 01
2
[PATCH nbdkit] Add Tcl plugin, for writing plugins in Tcl.
...crRefCount (cmd); + Tcl_ListObjAppendElement (0, cmd, Tcl_NewStringObj ("info", -1)); + Tcl_ListObjAppendElement (0, cmd, Tcl_NewStringObj ("procs", -1)); + Tcl_ListObjAppendElement (0, cmd, Tcl_NewStringObj (name, -1)); + r = Tcl_EvalObjEx (interp, cmd, TCL_EVAL_DIRECT); + Tcl_DecrRefCount (cmd); + if (r != TCL_OK) { + nbdkit_error ("info procs: %s", Tcl_GetStringResult (interp)); + return 0; /* We can't return an error here, just return false. */ + } + + /* 'info procs name' returns the proc name if it exists, else empty + * string, so we can just ch...