summaryrefslogtreecommitdiffstats
path: root/common.h
blob: e88c8407ae4817dc1b8e90c98bb48774ab1ca426 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* See LICENSE file for copyright and license details. */
#include "libparsesfnt.h"

#include <errno.h>
#include <limits.h>
#include <stdlib.h>
#include <string.h>


#define ELEMSOF(A) (sizeof(A) / sizeof(*(A)))


int libparsesfnt_parse___(const char *data, size_t size, void *infop, size_t esize,
                          const char *fmt, size_t offset, size_t offset2, size_t offset3,
                          size_t first, size_t count, const struct libparsesfnt_tabdir_entry *tag);

#define PARSE(...) libparsesfnt_parse___(data, size, infop, sizeof(*infop), __VA_ARGS__)