diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/lexer.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/lexer.h b/include/lexer.h index 8f7aab1..48deb0c 100644 --- a/include/lexer.h +++ b/include/lexer.h @@ -1,7 +1,7 @@ #ifndef __LEXER_H #define __LEXER_H -typedef enum { INCLUDE } directive_e; +typedef enum { INCLUDE, CONTENTFOR } directive_e; typedef struct { unsigned int offset; @@ -13,6 +13,11 @@ typedef struct { void *operands; } directive_t; +typedef struct { + char *key; + char *content; +} contentfor_operands_t; + directive_t *find_directive(char *content, key_match_t *match); key_match_t *find_next_key(char *buffer); |
