diff options
Diffstat (limited to 'src/include/aplwc.h')
| -rw-r--r-- | src/include/aplwc.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/include/aplwc.h b/src/include/aplwc.h index d4d101c..75d9485 100644 --- a/src/include/aplwc.h +++ b/src/include/aplwc.h @@ -7,17 +7,24 @@ enum aplwc_rc { APLWC_OK, APLWC_OUT_OF_MEMORY, + APLWC_NOT_YET_IMPLEMENTED, + APLWC_INVALID_UTF8, - APLWC_RC_LAST = APLWC_OUT_OF_MEMORY + APLWC_RC_LAST = APLWC_INVALID_UTF8 }; struct aplwc; +struct aplwc_line; enum aplwc_rc aplwc_new(struct aplwc **, uint8_t *, size_t); void aplwc_destroy(struct aplwc *); const char *aplwc_errstr_rc(enum aplwc_rc); const char *aplwc_errstr(struct aplwc *); +enum aplwc_rc aplwc_last_error(struct aplwc *); +struct aplwc_line *aplwc_read(struct aplwc *, const char *); +void aplwc_free_line(struct aplwc_line *); +enum aplwc_rc aplwc_eval(struct aplwc_line *); -#define APLWC_MIN_MEM (128) +#define APLWC_MIN_MEM (64) #endif /* APLWC_H */ |