Update of /cvsroot/pure-data/externals/loaders In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4368
Modified Files: libdir.c TODO Log Message: switched back to open_via_path to use global classpath; added -meta suffix
Index: libdir.c =================================================================== RCS file: /cvsroot/pure-data/externals/loaders/libdir.c,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** libdir.c 20 Nov 2006 00:51:30 -0000 1.1 --- libdir.c 20 Nov 2006 04:14:16 -0000 1.2 *************** *** 29,56 **** post("libdir_loader classname: %s\n", classname);
! /* look for meta file (classname)/(classname).pd hans@at.or.at */ ! /* TODO: at "-META" to the meta filename */ strncpy(fullclassname, classname, MAXPDSTRING - 6); strcat(fullclassname, "/"); strncat(fullclassname, classname, MAXPDSTRING - strlen(fullclassname) - 6); - strncat(fullclassname, classname, MAXPDSTRING - strlen(fullclassname) - 6); strcat(fullclassname, "-meta"); ! /* if ((fd = open_via_path(dirname, fullclassname, ".pd", ! dirbuf, &nameptr, MAXPDSTRING, 1)) < 0) */ ! post("libdir_loader fullclassname: %s\n", fullclassname); ! ! ! // TODO: this needs to be figured out! its the new 0.40 way of doing things ! /* send NULL as the canvas for the first argument, and it'll only look in the ! * global path and "." */ ! if ((fd = canvas_open(canvas, fullclassname, ".pd", ! dirbuf, &nameptr, MAXPDSTRING, 1)) < 0) ! { return (0); ! } close(fd); ! ! post("libdir_loader loaded fullclassname: %s\n", fullclassname);
/* create full path to libdir for adding to the paths */ --- 29,47 ---- post("libdir_loader classname: %s\n", classname);
! /* look for meta file (classname)/(classname)-meta.pd hans@at.or.at */ ! /* TODO: add "-META" to the meta filename */ strncpy(fullclassname, classname, MAXPDSTRING - 6); strcat(fullclassname, "/"); strncat(fullclassname, classname, MAXPDSTRING - strlen(fullclassname) - 6); strcat(fullclassname, "-meta"); ! post("libdir_loader trying fullclassname: '%s'\n", fullclassname); ! // post("patch dir: '%s'",canvas->gl_env->ce_dir->s_name); ! if ((fd = open_via_path("", fullclassname, ".pd", ! dirbuf, &nameptr, MAXPDSTRING, 1)) < 0) { return (0); ! } close(fd); ! post("libdir_loader loaded fullclassname: '%s'\n", fullclassname);
/* create full path to libdir for adding to the paths */ *************** *** 64,67 **** --- 55,59 ---- strcat(helppathname, classname);
+ // TODO: have this add to the canvas-local path only sys_searchpath = namelist_append_files(sys_searchpath, searchpathname); /* this help path supports having the help files in a complete library
Index: TODO =================================================================== RCS file: /cvsroot/pure-data/externals/loaders/TODO,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** TODO 20 Nov 2006 00:51:30 -0000 1.1 --- TODO 20 Nov 2006 04:14:16 -0000 1.2 *************** *** 24,25 **** --- 24,26 ----
+ - test binary on 0.41 test