summaryrefslogtreecommitdiffstats
path: root/src/query.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-05-13 16:04:14 +0000
committerDavid Robillard <d@drobilla.net>2009-05-13 16:04:14 +0000
commit0a04be1e9e8f3c6b355c014f5755bb30da0d5aec (patch)
treeb4eb149da0fc57af8c4e9356231aa191e6f1a118 /src/query.c
parent011d130c2b7f54b859ae41aac8b95d5825b975be (diff)
downloadlilv-0a04be1e9e8f3c6b355c014f5755bb30da0d5aec.tar.gz
lilv-0a04be1e9e8f3c6b355c014f5755bb30da0d5aec.tar.bz2
lilv-0a04be1e9e8f3c6b355c014f5755bb30da0d5aec.zip
Strip trailing whitespace.
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@1999 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/query.c')
-rw-r--r--src/query.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/query.c b/src/query.c
index 8990c9b..8655eab 100644
--- a/src/query.c
+++ b/src/query.c
@@ -1,6 +1,6 @@
/* SLV2
* Copyright (C) 2007 Dave Robillard <http://drobilla.net>
- *
+ *
* This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation; either version 2 of the License, or (at your option)
@@ -137,24 +137,24 @@ slv2_plugin_query_sparql(SLV2Plugin plugin,
char* query_str = slv2_strjoin(slv2_query_prefixes, sparql_str, NULL);
//printf("******** Query \n%s********\n", query_str);
-
+
librdf_query* query = librdf_new_query(plugin->world->world, "sparql", NULL,
(const unsigned char*)query_str, base_uri);
-
+
if (!query) {
fprintf(stderr, "ERROR: Could not create query\n");
return NULL;
}
-
+
// FIXME: locale kludges to work around librdf bug
char* locale = strdup(setlocale(LC_NUMERIC, NULL));
setlocale(LC_NUMERIC, "POSIX");
librdf_query_results* results = librdf_query_execute(query, plugin->rdf);
setlocale(LC_NUMERIC, locale);
-
+
free(locale);
-
+
librdf_free_query(query);
free(query_str);
@@ -225,7 +225,7 @@ slv2_plugin_query_variable(SLV2Plugin plugin,
SLV2Values ret = slv2_query_get_variable_bindings(plugin->world,
results, (int)variable);
-
+
slv2_results_free(results);
return ret;
@@ -236,7 +236,7 @@ slv2_plugin_query_variable(SLV2Plugin plugin,
*
* More efficient than slv2_plugin_simple_query if you're only interested
* in the number of results (ie slv2_plugin_num_ports).
- *
+ *
* Note the result of this function is probably meaningless unless the query
* is a SELECT DISTINCT.
*/