[PD-dev] pd.tk question
Miller Puckette
mpuckett at man104-1.ucsd.edu
Thu Oct 9 03:51:25 CEST 2003
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 at iem.at
> http://iem.at/cgi-bin/mailman/listinfo/pd-dev
More information about the Pd-dev
mailing list