[PD-cvs] externals/loaders libdir.c,1.3,1.4

Hans-Christoph Steiner eighthave at users.sourceforge.net
Tue Nov 21 05:00:56 CET 2006


Update of /cvsroot/pure-data/externals/loaders
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5550

Modified Files:
	libdir.c 
Log Message:
report only after success; and have it search the local dir before the global path

Index: libdir.c
===================================================================
RCS file: /cvsroot/pure-data/externals/loaders/libdir.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** libdir.c	21 Nov 2006 00:36:20 -0000	1.3
--- libdir.c	21 Nov 2006 04:00:54 -0000	1.4
***************
*** 53,57 ****
  	if(canvas) 
  	{
- 		post("libdir_loader: adding %s to the canvas-local path", classname);
  		canvasenvironment = canvas_getenv(canvas);
  		if ((fd = canvas_open(0, fullclassname, ".pd",
--- 53,56 ----
***************
*** 64,73 ****
  		canvasenvironment->ce_path = namelist_append(canvasenvironment->ce_path, 
  													 dirbuf, 0);
  	}
  	else
  	{
! 		post("libdir_loader: adding %s to the global classpath", classname);
! 		post("\tThis is deprecated behavior.");
! 		if ((fd = open_via_path("", fullclassname, ".pd",
  								dirbuf, &nameptr, MAXPDSTRING, 0)) < 0) 
  		{
--- 63,71 ----
  		canvasenvironment->ce_path = namelist_append(canvasenvironment->ce_path, 
  													 dirbuf, 0);
+ 		post("libdir_loader: added %s to the canvas-local path", classname);
  	}
  	else
  	{
! 		if ((fd = open_via_path(".", fullclassname, ".pd",
  								dirbuf, &nameptr, MAXPDSTRING, 0)) < 0) 
  		{
***************
*** 76,79 ****
--- 74,79 ----
  		close(fd);
  		sys_searchpath = namelist_append(sys_searchpath, dirbuf, 0);
+ 		post("libdir_loader: added %s to the global classpath", classname);
+ 		post("\tThis is deprecated behavior.");
  	}
  	/* post("libdir_loader loaded fullclassname: '%s'\n", fullclassname); */





More information about the Pd-cvs mailing list