stac

simple static site generator
git clone git://git.kocotian.pl/stacinhtml.git
Log | Files | Refs | README | LICENSE

commit 2208a30b71d4b3fc541485e0dd6bdd6e7993adc9
parent 31efb4313d41228c92cf41c3cc98d5c519bd772f
Author: kocotian <kocotian@kocotian.pl>
Date:   Fri,  6 Aug 2021 11:05:32 +0000

Moved headers to include/

Diffstat:
MMakefile | 2+-
Dassemble.h | 50--------------------------------------------------
Rarg.h -> include/arg.h | 0
Ainclude/assemble.h | 50++++++++++++++++++++++++++++++++++++++++++++++++++
Rstr.h -> include/str.h | 0
Rutil.h -> include/util.h | 0
Mlibstac/libstac.h | 4++--
7 files changed, 53 insertions(+), 53 deletions(-)

diff --git a/Makefile b/Makefile @@ -87,7 +87,7 @@ ${METADIR}%.c: ${INDIR}%.stac ${GENERATOR} -o $@ $(patsubst $(METADIR)%,$(INDIR)%,$(@:.c=.stac)) ${METADIR}%.bin: ${METADIR}%.c - ${CC} -o $@ -I. $(@:.bin=.c) ${OBJLIB} + ${CC} -o $@ -Iinclude -I. $(@:.bin=.c) ${OBJLIB} ${OUTDIR}%.html: ${METADIR}%.bin ./$(patsubst $(OUTDIR)%,$(METADIR)%,$(@:.html=.bin)) > $@ diff --git a/assemble.h b/assemble.h @@ -1,50 +0,0 @@ -/* - stac - simple static site generator - Copyright (C) 2021 Kacper Kocot <kocotian@kocotian.pl> - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -*/ - -#ifndef _ASSEMBLE_H -#define _ASSEMBLE_H - -#include <stdio.h> -#include <stdlib.h> -#include <string.h> -#include <sys/types.h> -#include <unistd.h> - -#include "libstac/libstac.h" -#include "str.h" -#include "util.h" - -/* Macros */ -#define VS_MAX 256 - -/* Types */ -typedef struct { - String name; - String value; -} Variable; - -/* Prototypes */ -String getVariableValue(char *varname); - -/* Externs */ -extern Variable vs[VS_MAX]; /* Variable stack */ -extern size_t vss; /* Variable stack size */ - -#endif diff --git a/arg.h b/include/arg.h diff --git a/include/assemble.h b/include/assemble.h @@ -0,0 +1,50 @@ +/* + stac - simple static site generator + Copyright (C) 2021 Kacper Kocot <kocotian@kocotian.pl> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + +*/ + +#ifndef _ASSEMBLE_H +#define _ASSEMBLE_H + +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include <sys/types.h> +#include <unistd.h> + +#include <libstac/libstac.h> +#include <str.h> +#include <util.h> + +/* Macros */ +#define VS_MAX 256 + +/* Types */ +typedef struct { + String name; + String value; +} Variable; + +/* Prototypes */ +String getVariableValue(char *varname); + +/* Externs */ +extern Variable vs[VS_MAX]; /* Variable stack */ +extern size_t vss; /* Variable stack size */ + +#endif diff --git a/str.h b/include/str.h diff --git a/util.h b/include/util.h diff --git a/libstac/libstac.h b/libstac/libstac.h @@ -5,8 +5,8 @@ #include <stdio.h> #include <unistd.h> -#include "../str.h" -#include "../util.h" +#include <str.h> +#include <util.h> /* Macros */ #define $(VARNAME) getVariableValue(#VARNAME)