diff options
author | David Robillard <d@drobilla.net> | 2008-01-25 06:55:57 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-01-25 06:55:57 +0000 |
commit | 6f4460aee9962a49ae872eef42ba75a439ea6e59 (patch) | |
tree | dd08af14a835d0d6f77aa6a3c4c9047ceb4b307f /src/util.c | |
parent | 361f21b9e1f59bd602d0e1ed8b80f726605995be (diff) | |
download | lilv-6f4460aee9962a49ae872eef42ba75a439ea6e59.tar.gz lilv-6f4460aee9962a49ae872eef42ba75a439ea6e59.tar.bz2 lilv-6f4460aee9962a49ae872eef42ba75a439ea6e59.zip |
Overhaul SLV2 API to return/take SLV2Value (instead of strings or primitives) wherever possible.
Make 'index' a fundemental property of ingen ports.
git-svn-id: http://svn.drobilla.net/lad/slv2@1113 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 16 |
1 files changed, 2 insertions, 14 deletions
@@ -25,23 +25,11 @@ #include <slv2/util.h> -void -slv2_strappend(char** dst, const char* suffix) -{ - assert(dst); - assert(*dst); - assert(suffix); - - const size_t new_length = strlen((char*)*dst) + strlen((char*)suffix) + 1; - *dst = realloc(*dst, (new_length * sizeof(char))); - assert(dst); - strcat((char*)*dst, (char*)suffix); -} - - char* slv2_strjoin(const char* first, ...) { + /* FIXME: This is, in fact, as stupid as it looks */ + size_t len = strlen(first); char* result = NULL; va_list args; |