# HG changeset patch # User Mike Becker # Date 1733783502 -3600 # Node ID d8044fd5005ccf0e7ea30405f136ad1a51502701 # Parent 455afb252878fc670e39e30330cbed217abe7e8d make cxBufferEof() return a bool diff -r 455afb252878 -r d8044fd5005c src/buffer.c --- a/src/buffer.c Sun Dec 08 00:18:47 2024 +0100 +++ b/src/buffer.c Mon Dec 09 23:31:42 2024 +0100 @@ -143,7 +143,7 @@ buffer->pos = 0; } -int cxBufferEof(const CxBuffer *buffer) { +bool cxBufferEof(const CxBuffer *buffer) { return buffer->pos >= buffer->size; } diff -r 455afb252878 -r d8044fd5005c src/cx/buffer.h --- a/src/cx/buffer.h Sun Dec 08 00:18:47 2024 +0100 +++ b/src/cx/buffer.h Mon Dec 09 23:31:42 2024 +0100 @@ -344,12 +344,12 @@ * Tests, if the buffer position has exceeded the buffer size. * * @param buffer the buffer to test - * @return non-zero, if the current buffer position has exceeded the last + * @return true, if the current buffer position has exceeded the last * byte of the buffer's contents. */ cx_attr_nonnull cx_attr_nodiscard -int cxBufferEof(const CxBuffer *buffer); +bool cxBufferEof(const CxBuffer *buffer); /**