[PD-cvs] pd/src desire.c,1.1.2.217.2.74,1.1.2.217.2.75

Mathieu Bouchard matju at users.sourceforge.net
Tue Dec 19 00:13:25 CET 2006


Update of /cvsroot/pure-data/pd/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17988

Modified Files:
      Tag: desiredata
	desire.c 
Log Message:
fix for getting help if classname has no associated class (e.g. [hsl] [nbx] ...)


Index: desire.c
===================================================================
RCS file: /cvsroot/pure-data/pd/src/Attic/desire.c,v
retrieving revision 1.1.2.217.2.74
retrieving revision 1.1.2.217.2.75
diff -C2 -d -r1.1.2.217.2.74 -r1.1.2.217.2.75
*** desire.c	18 Dec 2006 22:44:08 -0000	1.1.2.217.2.74
--- desire.c	18 Dec 2006 23:13:20 -0000	1.1.2.217.2.75
***************
*** 7524,7528 ****
          char namebuf[MAXPDSTRING], *dir;
          t_class *c = class_find(s);
!         if (!c) {post("help: no such class '%s'",s->s_name); return;}
          strcpy(namebuf, class_gethelpname(c));
          dir = class_gethelpdir(c);
--- 7524,7537 ----
          char namebuf[MAXPDSTRING], *dir;
          t_class *c = class_find(s);
!         if (!c) {
! 		//post("help: no such class '%s'",s->s_name); return;
! 		t_binbuf *b = binbuf_new();
! 		binbuf_addv(b,"s",s);
! 		newest = 0;
! 		binbuf_eval(b,&pd_objectmaker,0,0);
! 		if (!newest) {post("help: no such class '%s'",s->s_name); return;}
! 		c = newest->_class;
! 		pd_free(newest);
! 	}
          strcpy(namebuf, class_gethelpname(c));
          dir = class_gethelpdir(c);





More information about the Pd-cvs mailing list