src/*.h: add mollyguards
parent
dc842236ce
commit
521ce56380
|
@ -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
|
|
@ -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;
|
||||
|
@ -14,3 +19,5 @@ typedef struct {
|
|||
char *tilemap_filename;
|
||||
bool little_endian;
|
||||
} script_t;
|
||||
|
||||
#endif
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue