stacinhtml

Static C in HTML - simple static site generator
git clone git://git.kocotian.pl/stacinhtml.git
Log | Files | Refs | README | LICENSE

assemble.h (1332B)


      1 /*
      2    stacinhtml - STAtic C IN HTML - simple static site generator
      3    Copyright (C) 2021  Kacper Kocot <kocotian@kocotian.pl>
      4 
      5    This program is free software; you can redistribute it and/or modify
      6    it under the terms of the GNU General Public License as published by
      7    the Free Software Foundation; either version 3 of the License, or
      8    (at your option) any later version.
      9 
     10    This program is distributed in the hope that it will be useful,
     11    but WITHOUT ANY WARRANTY; without even the implied warranty of
     12    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13    GNU General Public License for more details.
     14 
     15    You should have received a copy of the GNU General Public License
     16    along with this program; if not, write to the Free Software Foundation,
     17    Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
     18 
     19 */
     20 
     21 #ifndef _ASSEMBLE_H
     22 #define _ASSEMBLE_H
     23 
     24 #include <stdio.h>
     25 #include <stdlib.h>
     26 #include <string.h>
     27 #include <sys/types.h>
     28 #include <unistd.h>
     29 
     30 #include "libstac/libstac.h"
     31 #include "str.h"
     32 #include "util.h"
     33 
     34 /* Macros */
     35 #define VS_MAX 256
     36 
     37 /* Types */
     38 typedef struct {
     39 	String name;
     40 	String value;
     41 } Variable;
     42 
     43 /* Prototypes */
     44 String getVariableValue(char *varname);
     45 
     46 /* Externs */
     47 extern Variable vs[VS_MAX]; /* Variable stack */
     48 extern size_t vss; /* Variable stack size */
     49 
     50 #endif