Thu, 17 Apr 2014 14:33:06 +0200
minor lexical and documentation fixes
test/buffer_tests.c | file | annotate | diff | comparison | revisions | |
test/buffer_tests.h | file | annotate | diff | comparison | revisions | |
test/main.c | file | annotate | diff | comparison | revisions | |
ucx/buffer.h | file | annotate | diff | comparison | revisions |
--- a/test/buffer_tests.c Thu Apr 10 11:32:59 2014 +0200 +++ b/test/buffer_tests.c Thu Apr 17 14:33:06 2014 +0200 @@ -29,7 +29,7 @@ #include "buffer_tests.h" #include "ucx/utils.h" -UCX_TEST(test_ucx_buffer_seektell) { +UCX_TEST(test_ucx_buffer_seek) { UcxBuffer *b = ucx_buffer_new(NULL, 32, UCX_BUFFER_DEFAULT); b->size = 16; // less than capacity int r;
--- a/test/buffer_tests.h Thu Apr 10 11:32:59 2014 +0200 +++ b/test/buffer_tests.h Thu Apr 17 14:33:06 2014 +0200 @@ -36,9 +36,7 @@ extern "C" { #endif -/* assume open and close to be correct */ - -UCX_TEST(test_ucx_buffer_seektell); +UCX_TEST(test_ucx_buffer_seek); UCX_TEST(test_ucx_buffer_putc); UCX_TEST(test_ucx_buffer_putc_ax); UCX_TEST(test_ucx_buffer_getc);
--- a/test/main.c Thu Apr 10 11:32:59 2014 +0200 +++ b/test/main.c Thu Apr 17 14:33:06 2014 +0200 @@ -173,7 +173,7 @@ ucx_test_register(suite, test_ucx_properties_store); /* UcxBuffer Tests */ - ucx_test_register(suite, test_ucx_buffer_seektell); + ucx_test_register(suite, test_ucx_buffer_seek); ucx_test_register(suite, test_ucx_buffer_putc); ucx_test_register(suite, test_ucx_buffer_putc_ax); ucx_test_register(suite, test_ucx_buffer_getc);
--- a/ucx/buffer.h Thu Apr 10 11:32:59 2014 +0200 +++ b/ucx/buffer.h Thu Apr 17 14:33:06 2014 +0200 @@ -123,7 +123,7 @@ * @param length the count of bytes to extract or 0 if all of the remaining * bytes shall be extracted * @param flags feature mask for the new buffer - * @return + * @return a new buffer containing the extraction */ UcxBuffer* ucx_buffer_extract(UcxBuffer *src, size_t start, size_t length, int flags);