accept empty lines in repl

This commit is contained in:
Yuichi Nishiwaki
2013-11-13 17:37:05 +09:00
parent d6c377a33b
commit 223e873ff0
4 changed files with 18 additions and 8 deletions
+6
View File
@@ -71,6 +71,12 @@ typedef struct {
typedef pic_value (*pic_func_t)(pic_state *);
enum pic_parser_res {
PIC_PARSER_INCOMPLETE = -1,
PIC_PARSER_ERROR = -2
/* if parser is successfully done, return the number of exprs (>= 0) */
};
void *pic_alloc(pic_state *, size_t);
void *pic_realloc(pic_state *, void *, size_t);
void *pic_calloc(pic_state *, unsigned, size_t);