aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2011-03-11 19:51:56 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2011-03-11 19:51:56 +0000
commit12edba6e6613af37752952a7f3cb9c25000547f8 (patch)
tree5f315f0788386bc18ba17eb88353ef9a4915a523
parent2b41a66d54c2fbba9fb9adb084c89f14847862f6 (diff)
updated to use 0.43's logpost()
svn path=/trunk/externals/loaders/libdir/; revision=15029
-rw-r--r--libdir.c23
1 files changed, 9 insertions, 14 deletions
diff --git a/libdir.c b/libdir.c
index b7b2126..d42364d 100644
--- a/libdir.c
+++ b/libdir.c
@@ -67,9 +67,8 @@ static int libdir_loader(t_canvas *canvas, char *classname)
if(sys_isabsolutepath(dirbuf)) // only include actual full paths
canvasenvironment->ce_path = namelist_append(canvasenvironment->ce_path,
dirbuf, 0);
- if(sys_verbose)
- post("libdir_loader: added '%s' to the canvas-local objectclass path",
- classname);
+ logpost(NULL, 3, "libdir_loader: added '%s' to the canvas-local objectclass path",
+ classname);
}
else
{
@@ -85,13 +84,12 @@ static int libdir_loader(t_canvas *canvas, char *classname)
strcat(helppathname, "/doc/5.reference/");
strcat(helppathname, classname);
sys_helppath = namelist_append(sys_helppath, helppathname, 0);
- post("libdir_loader: added '%s' to the global objectclass path",
- classname);
+ logpost(NULL, 3, "libdir_loader: added '%s' to the global objectclass path",
+ classname);
// post("\tThis is deprecated behavior.");
}
/* post("libdir_loader loaded fullclassname: '%s'\n", fullclassname); */
- if (sys_verbose)
- post("Loaded libdir '%s' from '%s'", classname, dirbuf);
+ verbose(10,"Loaded libdir '%s' from '%s'", classname, dirbuf);
return (1);
}
@@ -100,11 +98,8 @@ void libdir_setup(void)
{
/* relies on t.grill's loader functionality, fully added in 0.40 */
sys_register_loader(libdir_loader);
- if(sys_verbose)
- {
- post("libdir loader %s",version);
- post("\tcompiled on "__DATE__" at "__TIME__ " ");
- post("\tcompiled against Pd version %d.%d.%d.%s", PD_MAJOR_VERSION,
- PD_MINOR_VERSION, PD_BUGFIX_VERSION, PD_TEST_VERSION);
- }
+ logpost(NULL, 3, "libdir loader %s",version);
+ logpost(NULL, 3, "\tcompiled on "__DATE__" at "__TIME__ " ");
+ logpost(NULL, 3, "\tcompiled against Pd version %d.%d.%d.%s",
+ PD_MAJOR_VERSION, PD_MINOR_VERSION, PD_BUGFIX_VERSION, PD_TEST_VERSION);
}