summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipsk/config.h
blob: f4889b1fef423493c014599389ba201688e6a992 (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
/* config.h: master configuration file, included first by all compilable
   source files (not headers).  This file is public domain.  */

#ifndef CONFIG_H
#define CONFIG_H

/* The stuff from the path searching library.  */
#include <kpathsea/config.h>

/* How to open files with fopen.  */
#include <kpathsea/c-fopen.h>

/* How the filenames' parts are separated.  */
#include <kpathsea/c-pathch.h>

/* Have to get the enum constants below, sigh.  Still better than
   repeating the definitions everywhere we need them.  */
#include <kpathsea/tex-file.h>

#include <c-auto.h>

/* For kpathsea, we don't have paths, we have formats.  This is so
   we can do lazy evaluation of only the formats we need, instead of
   having to initialize everything in the world.  */
#define figpath kpse_pict_format
#define pictpath kpse_pict_format
#define pkpath kpse_pk_format
#define tfmpath kpse_tfm_format
#define ovfpath kpse_ovf_format
#define ofmpath kpse_ofm_format
#define vfpath kpse_vf_format
#define configpath kpse_dvips_config_format
#define headerpath kpse_tex_ps_header_format
#define type1path kpse_type1_format
#define mappath kpse_fontmap_format
#define encpath kpse_enc_format

#if (defined (DOS) || defined (MSDOS)) && !defined (__DJGPP__)
#undef DOS
#undef MSDOS
#define DOS
#define MSDOS
#endif

/* dvips has a different name for this.  */
#if SIZEOF_INT < 4
#define SHORTINT
#endif

#define READ FOPEN_R_MODE
#define READBIN FOPEN_RBIN_MODE
#define WRITEBIN FOPEN_WBIN_MODE

/* Include various things by default.  */
#ifndef NO_HPS
#define HPS
#endif
#ifndef NO_TPIC
#define TPIC
#endif
#ifndef NO_EMTEX
#define EMTEX
#endif

/* Include debugging by default, too.  */
#ifndef NO_DEBUG
#undef DEBUG
#define DEBUG

/* To pass along to kpathsea.  (Avoid changing debug.h.)  */
#define D_STAT		(1<<9)
#define D_HASH		(1<<10)
#define D_EXPAND	(1<<11)
#define D_SEARCH	(1<<12)
#endif

/* These are defined under NT, but we have variable names.  */
#undef ERROR
#undef NO_ERROR

#endif /* not CONFIG_H */