| 1 |
/* |
| 2 |
* newobj.h |
| 3 |
* |
| 4 |
* This file is part of the ttf2pk package. |
| 5 |
* |
| 6 |
* Copyright 1997-1999, 2000 by |
| 7 |
* Frederic Loyer <[email protected]> |
| 8 |
* Werner Lemberg <[email protected]> |
| 9 |
*/ |
| 10 |
|
| 11 |
#ifndef NEWOBJ_H |
| 12 |
#define NEWOBJ_H |
| 13 |
|
| 14 |
#include <stdio.h> |
| 15 |
#include "ttf2tfm.h" |
| 16 |
|
| 17 |
|
| 18 |
#if defined(HAVE_LIBKPATHSEA) |
| 19 |
#include <kpathsea/config.h> |
| 20 |
#define mymalloc xmalloc |
| 21 |
#define mycalloc xcalloc |
| 22 |
#define myrealloc xrealloc |
| 23 |
#else |
| 24 |
#if (defined(MSDOS) && defined(__TURBOC__)) || \ |
| 25 |
(defined(OS2) && defined(_MSC_VER)) |
| 26 |
#define SMALLMALLOC |
| 27 |
#endif |
| 28 |
|
| 29 |
void *mymalloc(size_t len); |
| 30 |
void *mycalloc(size_t nmemb, size_t len); |
| 31 |
void *myrealloc(void *oldp, size_t len); |
| 32 |
#endif |
| 33 |
|
| 34 |
char *get_line(FILE *f); |
| 35 |
Boolean texlive_getline(char **bufferp, FILE *f); |
| 36 |
char *newstring(const char *s); |
| 37 |
|
| 38 |
ttfinfo *newchar(Font *fnt); |
| 39 |
kern *newkern(void); |
| 40 |
pcc *newpcc(void); |
| 41 |
lig *newlig(void); |
| 42 |
stringlist *newstringlist(void); |
| 43 |
|
| 44 |
void init_font_structure(Font *fnt); |
| 45 |
|
| 46 |
#endif /* NEWOBJ_H */ |
| 47 |
|
| 48 |
|
| 49 |
/* end */ |