diff options
author | David Robillard <d@drobilla.net> | 2009-05-13 16:04:14 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-05-13 16:04:14 +0000 |
commit | 0a04be1e9e8f3c6b355c014f5755bb30da0d5aec (patch) | |
tree | b4eb149da0fc57af8c4e9356231aa191e6f1a118 /src/value.c | |
parent | 011d130c2b7f54b859ae41aac8b95d5825b975be (diff) | |
download | lilv-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/value.c')
-rw-r--r-- | src/value.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/value.c b/src/value.c index ae24a68..d05ba58 100644 --- a/src/value.c +++ b/src/value.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) @@ -45,7 +45,7 @@ slv2_value_set_numerics_from_string(SLV2Value val) val->val.float_val = strtod(val->str_val, &endptr); setlocale(LC_NUMERIC, locale); } - + free(locale); } @@ -78,7 +78,7 @@ slv2_value_new_librdf_node(SLV2World world, librdf_node* node) SLV2Value val = (SLV2Value)malloc(sizeof(struct _SLV2Value)); val->type = SLV2_VALUE_STRING; val->str_val = NULL; - + librdf_uri* datatype_uri = NULL; switch (librdf_node_get_type(node)) { @@ -107,7 +107,7 @@ slv2_value_new_librdf_node(SLV2World world, librdf_node* node) val = NULL; break; } - + if (val) slv2_value_set_numerics_from_string(val); @@ -227,7 +227,7 @@ slv2_value_get_turtle_token(SLV2Value value) size_t len = 0; char* result = NULL; char* locale = strdup(setlocale(LC_NUMERIC, NULL)); - + // FIXME: locale kludges to work around librdf bug switch (value->type) { @@ -258,7 +258,7 @@ slv2_value_get_turtle_token(SLV2Value value) } free(locale); - + return result; } @@ -277,7 +277,7 @@ slv2_value_as_uri(SLV2Value value) return value->str_val; } - + /* private */ librdf_uri* slv2_value_as_librdf_uri(SLV2Value value) |