summaryrefslogtreecommitdiff
path: root/Build/source/texk/ttf2pk2/newobj.h
blob: 7fe4c2c72c15f12ad49c07ec8c5840ed6b8ee71b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
 *   newobj.h
 *
 *   This file is part of the ttf2pk package.
 *
 *   Copyright 1997-1999, 2000 by
 *     Frederic Loyer <loyer@ensta.fr>
 *     Werner Lemberg <wl@gnu.org>
 */

#ifndef NEWOBJ_H
#define NEWOBJ_H

#include <stdio.h>
#include "ttf2tfm.h"


#if defined(HAVE_LIBKPATHSEA)
#include <kpathsea/config.h>
#define mymalloc xmalloc
#define mycalloc xcalloc
#define myrealloc xrealloc
#else
#if (defined(MSDOS) && defined(__TURBOC__)) || \
    (defined(OS2) && defined(_MSC_VER))
#define SMALLMALLOC
#endif

void *mymalloc(size_t len);
void *mycalloc(size_t nmemb, size_t len);
void *myrealloc(void *oldp, size_t len);
#endif

char *get_line(FILE *f);
Boolean texlive_getline(char **bufferp, FILE *f);
char *newstring(const char *s);

ttfinfo *newchar(Font *fnt);
kern *newkern(void);
pcc *newpcc(void);
lig *newlig(void);
stringlist *newstringlist(void);

void init_font_structure(Font *fnt);

#endif /* NEWOBJ_H */


/* end */