Reading a line into the buffer was the only logic complex enough to be worth testing really, and exposing the necessary parts of it to test it effectively was a pain. Makes more sense to move read_line out and throw away most of the tests.
12 lines
226 B
C
12 lines
226 B
C
#ifndef READER_H
|
|
#define READER_H
|
|
|
|
#include "memory_pool.h"
|
|
|
|
int read_line(int (*get_byte)(void), char *buffer, int buffer_size);
|
|
|
|
const expression_t *
|
|
read_expression(memory_pool_t *pool, const char *input, int len);
|
|
|
|
#endif
|