Yep. The "pdCmd' function is installed as a Tk command using the lines,
Tcl_CreateCommand(interp, "pd", (Tcl_CmdProc*)pdCmd, (ClientData)NULL, (Tcl_CmdDeleteProc *)NULL);
also from t_tkcmd.c
cheers Miller
On Wed, Oct 08, 2003 at 08:48:09PM -0400, Hans-Christoph Steiner wrote:
I can pretty much understand pd.tk at this point, I just have one lingering question: on lines starting with "pd", what is being called? Here are some examples:
proc menu_vradio {name accel} { pd [concat $name vradio $accel ;] }
proc menu_vumeter {name accel} { pd [concat $name vumeter $accel ;] }
proc menu_mycnv {name accel} { pd [concat $name mycnv $accel ;] }
My guess is that it is calling "static int pdCmd(ClientData cd, Tcl_Interp *interp, int argc, char **argv)" from t_tkcmd.c, but I don't entirely understand how. Any pointers would be appreciated.
.hc
There is no way to peace, peace is the way. -A.J. Muste
PD-dev mailing list PD-dev@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-dev