[PD] [declare -stdpath] relative to what?

Mathieu Bouchard matju at artengine.ca
Sat Aug 11 22:38:31 CEST 2007

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 searching
> 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

More information about the Pd-list mailing list