From b344c5c8dc089e3ea73d5fce41e11ffc59e20516 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 30 Sep 2010 08:37:37 +0000 Subject: Style. git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@2621 a436a847-0d15-0410-975c-d299462d15a1 --- src/world.c | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) (limited to 'src/world.c') diff --git a/src/world.c b/src/world.c index 133384f..0b54f19 100644 --- a/src/world.c +++ b/src/world.c @@ -16,24 +16,21 @@ * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. */ -#include "slv2-config.h" - #define _XOPEN_SOURCE 500 -#include #include #include #include #include +#ifdef SLV2_DYN_MANIFEST +#include +#endif #include #include "slv2/types.h" #include "slv2/world.h" #include "slv2/slv2.h" #include "slv2/util.h" +#include "slv2-config.h" #include "slv2_internal.h" -#ifdef SLV2_DYN_MANIFEST -#include -#endif - /* private */ static SLV2World @@ -291,7 +288,7 @@ slv2_world_load_bundle(SLV2World world, SLV2Value bundle_uri) librdf_free_query(query); #endif // SLV2_DYN_MANIFEST - /* ?plugin a lv2:Plugin */ + // ?plugin a lv2:Plugin librdf_statement* q = librdf_new_statement_from_nodes(world->world, NULL, librdf_new_node_from_node(world->rdf_a_node), librdf_new_node_from_node(world->lv2_plugin_node)); @@ -302,7 +299,7 @@ slv2_world_load_bundle(SLV2World world, SLV2Value bundle_uri) librdf_node* plugin_node = librdf_new_node_from_node(librdf_statement_get_subject(s)); - /* Add ?plugin rdfs:seeAlso */ + // Add ?plugin rdfs:seeAlso librdf_node* subject = plugin_node; librdf_node* predicate = librdf_new_node_from_uri_string(world->world, (const unsigned char*)(SLV2_NS_RDFS "seeAlso")); @@ -310,7 +307,7 @@ slv2_world_load_bundle(SLV2World world, SLV2Value bundle_uri) manifest_uri); librdf_model_add(world->model, subject, predicate, object); - /* Add ?plugin slv2:bundleURI */ + // Add ?plugin slv2:bundleURI subject = librdf_new_node_from_node(plugin_node); predicate = librdf_new_node_from_uri_string(world->world, (const unsigned char*)(SLV2_NS_SLV2 "bundleURI")); @@ -324,7 +321,7 @@ slv2_world_load_bundle(SLV2World world, SLV2Value bundle_uri) librdf_free_statement(q); - /* ?specification a lv2:Specification */ + // ?specification a lv2:Specification q = librdf_new_statement_from_nodes(world->world, NULL, librdf_new_node_from_node(world->rdf_a_node), librdf_new_node_from_node(world->lv2_specification_node)); @@ -335,7 +332,7 @@ slv2_world_load_bundle(SLV2World world, SLV2Value bundle_uri) librdf_node* spec_node = librdf_new_node_from_node(librdf_statement_get_subject(s)); - /* Add ?specification rdfs:seeAlso */ + // Add ?specification rdfs:seeAlso librdf_node* subject = spec_node; librdf_node* predicate = librdf_new_node_from_uri_string(world->world, (const unsigned char*)(SLV2_NS_RDFS "seeAlso")); @@ -344,7 +341,7 @@ slv2_world_load_bundle(SLV2World world, SLV2Value bundle_uri) librdf_model_add(world->model, subject, predicate, object); - /* Add ?specification slv2:bundleURI */ + // Add ?specification slv2:bundleURI subject = librdf_new_node_from_node(spec_node); predicate = librdf_new_node_from_uri_string(world->world, (const unsigned char*)(SLV2_NS_SLV2 "bundleURI")); @@ -357,7 +354,7 @@ slv2_world_load_bundle(SLV2World world, SLV2Value bundle_uri) librdf_free_stream(results); librdf_free_statement(q); - /* Join the temporary model to the main model */ + // Join the temporary model to the main model librdf_stream* manifest_stream = librdf_model_as_stream(manifest_model); librdf_model_add_statements(world->model, manifest_stream); librdf_free_stream(manifest_stream); -- cgit v1.2.1