36 for (
auto const& library_entry : value->listValue()) {
42 " one or more entries in the hooks-libraries list is not"
43 " a map (" << library_entry->getPosition() <<
")");
48 bool lib_found =
false;
56 for (
auto const& entry_item : library_entry->mapValue()) {
57 if (entry_item.first ==
"library") {
60 " error: value of 'library' element is not a string"
61 " giving the path to a hooks library (" <<
62 entry_item.second->getPosition() <<
")");
67 libname = (entry_item.second)->stringValue();
71 boost::erase_all(libname,
"\"");
73 if (libname.empty()) {
75 " error: value of 'library' element must not be"
77 entry_item.second->getPosition() <<
")");
86 if (entry_item.first ==
"parameters") {
87 parameters = entry_item.second;
93 << entry_item.first <<
"("
94 << library_entry->getPosition() <<
")");
99 " one or more hooks-libraries elements are missing the"
100 " name of the library" <<
101 " (" << library_entry->getPosition() <<
")");
104 libraries.add(libname, parameters);