diff options
author | David Robillard <d@drobilla.net> | 2011-05-16 22:48:36 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-05-16 22:48:36 +0000 |
commit | 9f095d02e31865762cc7964862c85cd33d7ae5cd (patch) | |
tree | 8708e5d17e9bd94df9f12ecd7e5d7e92c28ff64b /src/syntax.c | |
parent | 754e8db3d586b8f1b0df29f0c7d64da8e9ebf49d (diff) | |
download | sord-9f095d02e31865762cc7964862c85cd33d7ae5cd.tar.gz sord-9f095d02e31865762cc7964862c85cd33d7ae5cd.tar.bz2 sord-9f095d02e31865762cc7964862c85cd33d7ae5cd.zip |
Add name parameter to sord_read_file_handle (for error messages).
Support reading from string parameter or stdin in sordi.
git-svn-id: http://svn.drobilla.net/sord/trunk@119 3d64ff67-21c5-427c-a301-fe4f08042e5a
Diffstat (limited to 'src/syntax.c')
-rw-r--r-- | src/syntax.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/syntax.c b/src/syntax.c index 73c5229..d515b47 100644 --- a/src/syntax.c +++ b/src/syntax.c @@ -153,7 +153,7 @@ sord_read_file(SordModel* model, } const bool ret = sord_read_file_handle( - model, env, fd, base_uri, graph, blank_prefix); + model, env, fd, path, base_uri, graph, blank_prefix); fclose(fd); return ret; } @@ -163,6 +163,7 @@ bool sord_read_file_handle(SordModel* model, SerdEnv* env, FILE* fd, + const uint8_t* name, const uint8_t* base_uri_str_in, SordNode* graph, const uint8_t* blank_prefix) @@ -189,7 +190,7 @@ sord_read_file_handle(SordModel* model, serd_reader_set_blank_prefix(state.reader, blank_prefix); } - const SerdStatus ret = serd_reader_read_file(state.reader, fd, base_uri_str); + const SerdStatus ret = serd_reader_read_file(state.reader, fd, name); serd_reader_free(state.reader); free(base_uri_str); |