src/*.h: add mollyguards
parent
dc842236ce
commit
521ce56380
|
@ -1,3 +1,5 @@
|
||||||
|
#ifndef _SMEARGLE_FONT_H
|
||||||
|
#define _SMEARGLE_FONT_H
|
||||||
|
|
||||||
typedef struct map_t {
|
typedef struct map_t {
|
||||||
const char *glyph;
|
const char *glyph;
|
||||||
|
@ -20,3 +22,5 @@ font_t font_create(char *name, char *filename);
|
||||||
void font_destroy(font_t font);
|
void font_destroy(font_t font);
|
||||||
unsigned int map_create(toml_table_t *table, map_t **map);
|
unsigned int map_create(toml_table_t *table, map_t **map);
|
||||||
void map_destroy(map_t *map);
|
void map_destroy(map_t *map);
|
||||||
|
|
||||||
|
#endif
|
11
src/script.h
11
src/script.h
|
@ -1,9 +1,14 @@
|
||||||
|
|
||||||
|
#ifndef _SMEARGLE_SCRIPT_H
|
||||||
|
#define _SMEARGLE_SCRIPT_H
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
|
#include "font.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
char *filename;
|
char *filename;
|
||||||
font_t *font;
|
font_t font;
|
||||||
char *format;
|
char *format;
|
||||||
unsigned int min_tiles_per_line;
|
unsigned int min_tiles_per_line;
|
||||||
unsigned int max_tiles_per_line;
|
unsigned int max_tiles_per_line;
|
||||||
|
@ -13,4 +18,6 @@ typedef struct {
|
||||||
char *dedupe_filename;
|
char *dedupe_filename;
|
||||||
char *tilemap_filename;
|
char *tilemap_filename;
|
||||||
bool little_endian;
|
bool little_endian;
|
||||||
} script_t;
|
} script_t;
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#ifndef _SMEARGLE_UTIL_H
|
||||||
|
#define _SMEARGLE_UTIL_H
|
||||||
|
|
||||||
#include <sys/errno.h>
|
#include <sys/errno.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
@ -9,3 +11,4 @@ static void error(const char *msg, const char *msg1) {
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue