[SCM] calf/master: Fix makerdf in non-LV2 configurations.

js at users.alioth.debian.org js at users.alioth.debian.org
Tue May 7 15:41:06 UTC 2013


The following commit has been merged in the master branch:
commit 89b9ff1a7a245b3e2246153445c6608284c12704
Author: Krzysztof Foltman <wdev at foltman.com>
Date:   Sat Aug 25 14:37:50 2012 +0100

    Fix makerdf in non-LV2 configurations.

diff --git a/src/makerdf.cpp b/src/makerdf.cpp
index e988010..d1a27bb 100644
--- a/src/makerdf.cpp
+++ b/src/makerdf.cpp
@@ -43,6 +43,17 @@ static struct option long_options[] = {
     {0,0,0,0},
 };
 
+static FILE *open_and_check(const std::string &filename)
+{
+    FILE *f = fopen(filename.c_str(), "w");
+    if (!f)
+    {
+        fprintf(stderr, "Cannot write file '%s': %s\n", filename.c_str(), strerror(errno));
+        exit(1);
+    }
+    return f;
+}
+
 #if USE_LV2
 static void add_port(string &ports, const char *symbol, const char *name, const char *direction, int pidx, const char *type = "lv2:AudioPort", bool optional = false)
 {
@@ -162,17 +173,6 @@ static bool add_ctl_port(string &ports, const parameter_properties &pp, int pidx
     return true;
 }
 
-static FILE *open_and_check(const std::string &filename)
-{
-    FILE *f = fopen(filename.c_str(), "w");
-    if (!f)
-    {
-        fprintf(stderr, "Cannot write file '%s': %s\n", filename.c_str(), strerror(errno));
-        exit(1);
-    }
-    return f;
-}
-
 void make_ttl(string path_prefix)
 {
     if (path_prefix.empty())

-- 
calf audio plugins packaging



More information about the pkg-multimedia-commits mailing list