src/*.h: add mollyguards

current
Síle Ekaterin Liszka 2023-11-27 16:39:00 -08:00
parent dc842236ce
commit 521ce56380
3 changed files with 16 additions and 2 deletions

View File

@ -1,3 +1,5 @@
#ifndef _SMEARGLE_FONT_H
#define _SMEARGLE_FONT_H
typedef struct map_t {
const char *glyph;
@ -20,3 +22,5 @@ font_t font_create(char *name, char *filename);
void font_destroy(font_t font);
unsigned int map_create(toml_table_t *table, map_t **map);
void map_destroy(map_t *map);
#endif

View File

@ -1,9 +1,14 @@
#ifndef _SMEARGLE_SCRIPT_H
#define _SMEARGLE_SCRIPT_H
#include <stdbool.h>
#include "font.h"
typedef struct {
char *filename;
font_t *font;
font_t font;
char *format;
unsigned int min_tiles_per_line;
unsigned int max_tiles_per_line;
@ -13,4 +18,6 @@ typedef struct {
char *dedupe_filename;
char *tilemap_filename;
bool little_endian;
} script_t;
} script_t;
#endif

View File

@ -1,3 +1,5 @@
#ifndef _SMEARGLE_UTIL_H
#define _SMEARGLE_UTIL_H
#include <sys/errno.h>
#include <stdlib.h>
@ -9,3 +11,4 @@ static void error(const char *msg, const char *msg1) {
exit(1);
}
#endif