[PD] [declare -stdpath] relative to what?
mpuckett at imusic1.ucsd.edu
Sun Aug 12 00:06:14 CEST 2007
Oops, my mistake.
In "declare" systax, "-stdpath" does take an argument... if you give it
foo/bar, for example, the directory searched is .../pd/foo/bar.
My bad for naming it the same as the command-line argument, which does
On Sat, Aug 11, 2007 at 04:38:31PM -0400, Mathieu Bouchard wrote:
> On Sat, 11 Aug 2007, Miller Puckette wrote:
> >On Sat, Aug 11, 2007 at 07:26:05PM +0200, Roman Haefeli wrote:
> >>i just figured out, that i don't know how to use [declare -stdpath]. the
> >In vanilla at least, -stdpath and -nostdpath simpl turn on and off
> >in the "extra" directory of Pd. It takes no argument.
> Roman is not even talking about that feature. He's talking about the other
> feature of the same name. It's in a class named [declare]. You added
> [declare] in 0.40. It is implemented by canvas_declare, a function that
> you wrote for 0.40. That feature takes an argument, as you wrote in the
> else if ((argc > i+1) && !strcmp(flag, "-stdpath"))
> strncpy(strbuf, sys_libdir->s_name, MAXPDSTRING-3);
> strbuf[MAXPDSTRING-4] = 0;
> strcat(strbuf, "/");
> strncpy(strbuf, atom_getsymbolarg(i+1, argc, argv)->s_name,
> strbuf[MAXPDSTRING-1] = 0;
> e->ce_path = namelist_append(e->ce_path, strbuf, 0);
> Because atom_getsymbolarg takes an argument, and i++ augments the counter
> so that it points to the beginning of the next option, which is after that
> argument. This is what you wrote.
> _ _ __ ___ _____ ________ _____________ _____________________ ...
> | Mathieu Bouchard - t?l:+1.514.383.3801, Montr?al QC Canada
> PD-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
More information about the Pd-list