1010#include " utilities.h"
1111#include " FLErrorWindow.h"
1212
13+ #include < iostream>
14+
1315#define LLVM_DSP_FACTORY
1416#ifdef LLVM_DSP_FACTORY
1517#include " faust/dsp/llvm-dsp.h"
@@ -165,7 +167,7 @@ void FLHelpWindow::parseLibs(map<string, vector<pair<string, string> > >& infoLi
165167 // The library path is where libraries like the scheduler architecture file are = currentSession
166168 string libPath = fLibsFolder .toStdString ();
167169 argv[argc++] = libPath.c_str ();
168- argv[argc] = 0 ; // NULL terminated argv
170+ argv[argc] = NULL ; // NULL terminated argv
169171 string error;
170172 string file = fTestDSPPath .toStdString ();
171173
@@ -174,6 +176,7 @@ void FLHelpWindow::parseLibs(map<string, vector<pair<string, string> > >& infoLi
174176#else
175177 dsp_factory* temp_factory = createInterpreterDSPFactoryFromFile (file, argc, argv, error);
176178#endif
179+
177180 if (!temp_factory) {
178181 FLErrorWindow::_Instance ()->print_Error (error.c_str ());
179182 return ;
@@ -184,7 +187,7 @@ void FLHelpWindow::parseLibs(map<string, vector<pair<string, string> > >& infoLi
184187
185188 MyMeta* meta = new MyMeta;
186189 temp_dsp->metadata (meta);
187-
190+
188191 for (size_t i = 0 ; i < meta->datas .size (); i++) {
189192
190193 string libName, key, value;
@@ -196,7 +199,7 @@ void FLHelpWindow::parseLibs(map<string, vector<pair<string, string> > >& infoLi
196199 } else {
197200 key = meta->datas [i].first ;
198201 }
199-
202+
200203 value = meta->datas [i].second ;
201204 infoLibs[libName].push_back (make_pair (key, value));
202205 }
0 commit comments