aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-12-01 18:31:30 -0500
committerDavid Robillard <d@drobilla.net>2023-12-02 18:49:08 -0500
commit94879f376f1d2b8fbb2322bf2a7dab5c3bb9e098 (patch)
tree6db087ffdb3c76fac0492b771bc25aee6291a3e7 /src
parented12fd8066ed47c1ee675a69dfed21751313f197 (diff)
downloadserd-94879f376f1d2b8fbb2322bf2a7dab5c3bb9e098.tar.gz
serd-94879f376f1d2b8fbb2322bf2a7dab5c3bb9e098.tar.bz2
serd-94879f376f1d2b8fbb2322bf2a7dab5c3bb9e098.zip
[TESTED] Replace -b and -e options with a block size option
This is more powerful, and reduces the number of command line options that almost nobody needs to care about.
Diffstat (limited to 'src')
-rw-r--r--src/system.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/system.h b/src/system.h
index ba5301fd..a0ec05dc 100644
--- a/src/system.h
+++ b/src/system.h
@@ -6,7 +6,6 @@
#include "zix/attributes.h"
-#include <stdint.h>
#include <stdio.h>
#define SERD_PAGE_SIZE 4096
@@ -31,20 +30,4 @@ serd_allocate_buffer(size_t size);
void
serd_free_aligned(void* ptr);
-/// Wrapper for getc that is compatible with SerdReadFunc
-static inline size_t
-serd_file_read_byte(void* buf, size_t size, size_t nmemb, void* stream)
-{
- (void)size;
- (void)nmemb;
-
- const int c = getc((FILE*)stream);
- if (c == EOF) {
- *((uint8_t*)buf) = 0;
- return 0;
- }
- *((uint8_t*)buf) = (uint8_t)c;
- return 1;
-}
-
#endif // SERD_SRC_SYSTEM_H