Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22866
Modified Files: Tag: desiredata s_path.c desire.c Log Message: removed pd start-startup-dialog and pd startup-dialog
Index: s_path.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/s_path.c,v retrieving revision 1.3.4.6.2.8.2.1 retrieving revision 1.3.4.6.2.8.2.2 diff -C2 -d -r1.3.4.6.2.8.2.1 -r1.3.4.6.2.8.2.2 *** s_path.c 6 Dec 2006 01:23:07 -0000 1.3.4.6.2.8.2.1 --- s_path.c 6 Dec 2006 01:24:57 -0000 1.3.4.6.2.8.2.2 *************** *** 516,585 **** }
- /* undo pdtk_encodedialog. This allows dialogs to send spaces, commas, dollars, and semis down here. */ - t_symbol *sys_decodedialog(t_symbol *s) - { - char buf[MAXPDSTRING], *sp = s->s_name; - int i; - if (*sp != '+') - bug("sys_decodedialog: %s", sp); - else sp++; - for (i = 0; i < MAXPDSTRING-1; i++, sp++) - { - if (!sp[0]) - break; - if (sp[0] == '+') - { - if (sp[1] == '_') - buf[i] = ' ', sp++; - else if (sp[1] == '+') - buf[i] = '+', sp++; - else if (sp[1] == 'c') - buf[i] = ',', sp++; - else if (sp[1] == 's') - buf[i] = ';', sp++; - else if (sp[1] == 'd') - buf[i] = '$', sp++; - else buf[i] = sp[0]; - } - else buf[i] = sp[0]; - } - buf[i] = 0; - return (gensym(buf)); - } - - /* start a startup dialog window */ - void glob_start_startup_dialog(t_pd *dummy) - { - char buf[MAXPDSTRING]; - int i; - t_namelist *nl; - - for (nl = sys_externlist, i = 0; nl && i < 10; nl = nl->nl_next, i++) - sys_vgui("pd_set pd_startup%d "%s"\n", i, nl->nl_string); - for (; i < 10; i++) - sys_vgui("pd_set pd_startup%d ""\n", i); - - sprintf(buf, "pdtk_startup_dialog %%s %d "%s"\n", sys_defeatrt, - sys_flags->s_name); - gfxstub_new(&glob_pdobject, (void *)glob_start_startup_dialog, buf); - } - - /* new values from dialog window */ - void glob_startup_dialog(t_pd *dummy, t_symbol *s, int argc, t_atom *argv) - { - int i; - namelist_free(sys_externlist); - sys_externlist = 0; - sys_defeatrt = atom_getintarg(0, argc, argv); - sys_flags = sys_decodedialog(atom_getsymbolarg(1, argc, argv)); - for (i = 0; i < argc-2; i++) - { - t_symbol *s = sys_decodedialog(atom_getsymbolarg(i+2, argc, argv)); - if (*s->s_name) - sys_externlist = namelist_append_files(sys_externlist, s->s_name); - } - } - - #ifdef DESIRE void glob_update_path (void) { --- 516,519 ----
Index: desire.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/Attic/desire.c,v retrieving revision 1.1.2.217.2.33 retrieving revision 1.1.2.217.2.34 diff -C2 -d -r1.1.2.217.2.33 -r1.1.2.217.2.34 *** desire.c 6 Dec 2006 01:23:07 -0000 1.1.2.217.2.33 --- desire.c 6 Dec 2006 01:24:57 -0000 1.1.2.217.2.34 *************** *** 7841,7846 **** class_addmethod3(c,glob_midi_properties, "midi-properties", "F"); class_addmethod3(c,glob_midi_dialog, "midi-dialog", "*"); - class_addmethod3(c,glob_start_startup_dialog,"start-startup-dialog", ""); - class_addmethod3(c,glob_startup_dialog, "startup-dialog", "*"); class_addmethod3(c,glob_ping, "ping",""); class_addmethod3(c,glob_tooltips, "tooltips", "F"); --- 7841,7844 ----