diff options
author | Jari Vetoniemi <mailroxas@gmail.com> | 2018-02-23 12:54:43 +0200 |
---|---|---|
committer | Jari Vetoniemi <mailroxas@gmail.com> | 2018-02-23 12:54:43 +0200 |
commit | 4750be2da326297830691c54adbab0a5dea14802 (patch) | |
tree | ae7b9643ce3fdbf6c0ddc78c2626fb81416f1404 /src/ragel/ragel.h | |
parent | 22fb54a917676e61f19d773cc4f931300ace925e (diff) |
wip
Diffstat (limited to 'src/ragel/ragel.h')
-rw-r--r-- | src/ragel/ragel.h | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/ragel/ragel.h b/src/ragel/ragel.h deleted file mode 100644 index b2c7572..0000000 --- a/src/ragel/ragel.h +++ /dev/null @@ -1,30 +0,0 @@ -#pragma once - -#include <stdint.h> -#include <stdbool.h> - -struct ragel_mem { - const char *data, *end; - bool binary; // binary input bit -}; - -struct ragel { - struct ragel_mem input; // block of input data - uint64_t lineno; // current line - const char *p, *pe, *eof; // see ragel doc - const char *cl; // current line start - const char *name; // may be current file name for example - bool error; // error thrown bit -}; - -__attribute__((format(printf, 2, 3))) void -ragel_throw_error(struct ragel *ragel, const char *fmt, ...); - -void -ragel_set_name(struct ragel *ragel, const char *name); - -void -ragel_advance_line(struct ragel *ragel); - -void -ragel_feed_input(struct ragel *ragel, const bool eof, const struct ragel_mem *input); |