aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/config.h6
-rw-r--r--include/engine.h8
-rw-r--r--include/lexer.h40
-rw-r--r--include/list.h8
-rw-r--r--include/msg.h6
-rw-r--r--include/template.h2
-rw-r--r--include/util.h2
7 files changed, 36 insertions, 36 deletions
diff --git a/include/config.h b/include/config.h
index d1eaa5d..924f606 100644
--- a/include/config.h
+++ b/include/config.h
@@ -25,9 +25,9 @@
#define DELIM_ARRAY ","
typedef struct {
- list_t *keys;
- list_t *values;
- list_t *array_values;
+ list_t *keys;
+ list_t *values;
+ list_t *array_values;
} config_t;
config_t *config_parse(char *content);
diff --git a/include/engine.h b/include/engine.h
index 1d19ec5..d7e05e0 100644
--- a/include/engine.h
+++ b/include/engine.h
@@ -30,16 +30,16 @@
* config: Config of the ingested file
*/
typedef struct {
- list_t *content_headers;
- config_t *config;
+ list_t *content_headers;
+ config_t *config;
} engine_t;
/*
* An atom is a single iteration of an EACHDO.
*/
typedef struct {
- char *content;
- int priority;
+ char *content;
+ int priority;
} atom_t;
engine_t *engine_ingest(char **buffer);
diff --git a/include/lexer.h b/include/lexer.h
index f7a851a..543cd93 100644
--- a/include/lexer.h
+++ b/include/lexer.h
@@ -24,38 +24,38 @@
#define DIRECTIVE_IS(key) strncmp(buffer + n, key, strlen(key)) == 0
typedef enum {
- _RAW,
- INCLUDE,
- CONTENT,
- CONTENTFOR,
- ENDCONTENT,
- BODY,
- EACHDO,
- ENDEACHDO,
- PUT,
- PUTPAGE
+ _RAW,
+ INCLUDE,
+ CONTENT,
+ CONTENTFOR,
+ ENDCONTENT,
+ BODY,
+ EACHDO,
+ ENDEACHDO,
+ PUT,
+ PUTPAGE
} directive_e;
typedef struct {
- unsigned int offset;
- unsigned int length;
+ unsigned int offset;
+ unsigned int length;
} key_match_t;
typedef struct {
- directive_e type;
- void *operands;
+ directive_e type;
+ void *operands;
} directive_t;
typedef struct {
- char *key;
- char *content;
+ char *key;
+ char *content;
} contentfor_operand_t;
typedef struct {
- char *source;
- char *key;
- char *content;
- size_t length;
+ char *source;
+ char *key;
+ char *content;
+ size_t length;
} eachdo_operands_t;
list_t *lex(char *buffer);
diff --git a/include/list.h b/include/list.h
index 2a3da57..2c39658 100644
--- a/include/list.h
+++ b/include/list.h
@@ -26,10 +26,10 @@
#define INCREMENT_BY 5
typedef struct {
- size_t element_size;
- size_t max;
- size_t size;
- uint8_t *elements;
+ size_t element_size;
+ size_t max;
+ size_t size;
+ uint8_t *elements;
} list_t;
list_t *list_create(size_t element_size);
diff --git a/include/msg.h b/include/msg.h
index 3dea0d9..da6cd19 100644
--- a/include/msg.h
+++ b/include/msg.h
@@ -27,9 +27,9 @@
#define CONFIG_FILE "config.cfg"
typedef struct {
- char *base_directory;
- char *output_directory;
- bool verbose;
+ char *base_directory;
+ char *output_directory;
+ bool verbose;
} msg_t;
int run(bool log);
diff --git a/include/template.h b/include/template.h
index 122825c..2405cb3 100644
--- a/include/template.h
+++ b/include/template.h
@@ -25,7 +25,7 @@
#include <stdio.h>
typedef struct {
- list_t *components;
+ list_t *components;
} template_t;
void template_initialize(void);
diff --git a/include/util.h b/include/util.h
index 69c51f2..75d2277 100644
--- a/include/util.h
+++ b/include/util.h
@@ -20,7 +20,7 @@
#define __UTIL_H
typedef struct {
- void *ptr;
+ void *ptr;
} ptr_wrapper_t;
int msleep(long msec);