diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/copy.h | 12 | ||||
-rw-r--r-- | include/engine.h | 6 | ||||
-rw-r--r-- | include/filehandler.h | 4 | ||||
-rw-r--r-- | include/lexer.h | 19 | ||||
-rw-r--r-- | include/template.h | 6 |
5 files changed, 47 insertions, 0 deletions
diff --git a/include/copy.h b/include/copy.h new file mode 100644 index 0000000..81e543a --- /dev/null +++ b/include/copy.h @@ -0,0 +1,12 @@ +#ifndef __COPY_H +#define __COPY_H + +#include <ftw.h> +#include <sys/stat.h> + +int copy_recursively(const char *fpath, + const struct stat *sb, + int typeflag, + struct FTW *ftwbuf); + +#endif diff --git a/include/engine.h b/include/engine.h new file mode 100644 index 0000000..a34841a --- /dev/null +++ b/include/engine.h @@ -0,0 +1,6 @@ +#ifndef __ENGINE_H +#define __ENGINE_H + +void ingest(char **buffer); + +#endif diff --git a/include/filehandler.h b/include/filehandler.h index 8868af7..f1f3342 100644 --- a/include/filehandler.h +++ b/include/filehandler.h @@ -3,6 +3,10 @@ #include <stdio.h> +typedef struct { + +} filehandler_t; + char *fcontent(FILE *f, unsigned int size); unsigned int fsize(FILE *f); diff --git a/include/lexer.h b/include/lexer.h new file mode 100644 index 0000000..8f7aab1 --- /dev/null +++ b/include/lexer.h @@ -0,0 +1,19 @@ +#ifndef __LEXER_H +#define __LEXER_H + +typedef enum { INCLUDE } directive_e; + +typedef struct { + unsigned int offset; + unsigned int length; +} key_match_t; + +typedef struct { + directive_e type; + void *operands; +} directive_t; + +directive_t *find_directive(char *content, key_match_t *match); +key_match_t *find_next_key(char *buffer); + +#endif diff --git a/include/template.h b/include/template.h new file mode 100644 index 0000000..e29e6b5 --- /dev/null +++ b/include/template.h @@ -0,0 +1,6 @@ +#ifndef __TEMPLATE_H +#define __TEMPLATE_H + +void template_initialize(char **base_pre, char **base_post); + +#endif |