amend previous commit, remove cruft, no more extern function pointers
authorRobin Gareus <robin@gareus.org>
Fri, 11 Apr 2014 17:36:17 +0000 (19:36 +0200)
committerRobin Gareus <robin@gareus.org>
Fri, 11 Apr 2014 17:36:17 +0000 (19:36 +0200)
gtk2_ardour/wscript
libs/ardour/wscript
libs/fst/fst.c [deleted file]
libs/fst/fst.h
libs/fst/vstwin.c
libs/fst/wscript

index bc1adb16d58100dbc9e75ac09caf73d3fedaeaf7..35ac210f214830b2bb98cd60ed83ec2926bbac34 100644 (file)
@@ -363,7 +363,6 @@ def build(bld):
         # here using winegcc, and link it to the GTK front-end library
         obj = bld (features = 'cxx c cxxprogram wine')
         obj.source = (
-            '../libs/fst/fst.c',
             '../libs/fst/vstwin.c',
             '../vst/winmain.c',
             )
index f65e981b385340accbdfba070c6ae938f12f76e2..c12aec4ef83aa959d643c04f8646862717948783 100644 (file)
@@ -376,7 +376,7 @@ def build(bld):
         obj.includes += [ '../fst' ]
         obj.defines += [ 'WINDOWS_VST_SUPPORT' ]
         if bld.env['build_target'] == 'mingw':
-            obj.source += [ '../fst/vstwin.c', '../fst/fst.c']
+            obj.source += [ '../fst/vstwin.c']
             obj.uselib += ['GDI32']
 
     if bld.is_defined('LXVST_SUPPORT'):
diff --git a/libs/fst/fst.c b/libs/fst/fst.c
deleted file mode 100644 (file)
index 3ceee52..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-#include <stdio.h>
-#include <stdarg.h>
-
-#include "fst.h"
-
-void
-fst_error (const char *fmt, ...)
-{
-       va_list ap;
-       char buffer[512];
-
-       va_start (ap, fmt);
-       vsnprintf (buffer, sizeof(buffer), fmt, ap);
-       fst_error_callback (buffer);
-       va_end (ap);
-}
-
-static void
-default_fst_error_callback (const char *desc)
-{
-       fprintf(stderr, "%s\n", desc);
-}
-
-void (*fst_error_callback)(const char *desc) = &default_fst_error_callback;
index e9a92e6224687c7232e9859d94a73c72fd72b2d9..7b9a67125e5b381e2aab97105b5c51667522a9e9 100644 (file)
@@ -9,26 +9,6 @@
 #include "ardour/vst_types.h"
 #include "ardour/vestige/aeffectx.h"
 
-/**
- * Display FST error message.
- *
- * Set via fst_set_error_function(), otherwise a FST-provided
- * default will print @a msg (plus a newline) to stderr.
- *
- * @param msg error message text (no newline at end).
- */
-LIBARDOUR_API void (*fst_error_callback)(const char *msg);
-
-/**
- * Set the @ref fst_error_callback for error message display.
- *
- * The FST library provides two built-in callbacks for this purpose:
- * default_fst_error_callback() and silent_fst_error_callback().
- */
-void fst_set_error_function (void (*func)(const char *));
-
-void  fst_error (const char *fmt, ...);
-
 #ifdef __cplusplus
 extern "C" {
 #endif
index 4c4e2888f55e6ccbaeedeb405b4a48167eadc498..c07aaa09dcd01d7d7d8e8ff8be1aed348e7df4c7 100644 (file)
@@ -2,6 +2,8 @@
 #include <string.h>
 #include <windows.h>
 
+#define fst_error(...) fprintf(stderr, __VA_ARGS__)
+
 #ifdef PLATFORM_WINDOWS
 
 #include <pthread.h>
index 8faefe32819e033d167693e63b3ff768a693220f..809f13840b25438288819c490da61137a873615d 100644 (file)
@@ -59,7 +59,6 @@ def build(bld):
         obj = bld (features = 'c cxx cxxprogram wine')
         obj.source = (
             'scanner.cc',
-            'fst.c',
             'vstwin.c',
             )
         obj.linkflags = ['-mwindows', '-Wl,--export-dynamic']
@@ -69,7 +68,7 @@ def build(bld):
     else:
         obj = bld (features = 'cxx c cxxprogram')
         if bld.is_defined('WINDOWS_VST_SUPPORT'):
-            obj.source = ( 'scanner.cc', 'fst.c', 'vstwin.c' )
+            obj.source = ( 'scanner.cc', 'vstwin.c' )
             obj.uselib = ['GIOMM', 'DL', 'GDI32']
         else:
             obj.source = ( 'scanner.cc' )