diff --git a/Makefile b/Makefile index 86ac6ce..6b30379 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ BIN = srohtml -VERSION = 0.1 +VERSION = 0.2 PREFIX = /usr/local diff --git a/srohtml.c b/srohtml.c index 4938ef0..797fd34 100644 --- a/srohtml.c +++ b/srohtml.c @@ -89,15 +89,20 @@ static void footer(void); static void footnotes(void); static int fputs_html(const char *str, FILE *f, const html_val_type t); static size_t fread_line(FILE *file, char **str, size_t *len); +static void free_arrays(void); static void indent_str(char **str, const int ind); +static void init_arrays(void); static void nav_index(FILE *f); +static void outputs(FILE *out); static void page_head(void); static void pop_closure(array *a); static void print_help(void); static void print_usage(void); static void print_version(void); +static void read_and_process(FILE *in); static void *safe_malloc(const size_t size); static void *safe_realloc(void *ptr, const size_t size); +static void srohtml(FILE *in, FILE *out); static size_t stread_param(const char *src, char **str); /* variables */ @@ -867,6 +872,7 @@ footer(void) max = 16; array_strcat(&body, "\t\t