Back to index

tetex-bin  3.0
config.h
Go to the documentation of this file.
00001 /* config.h: master configuration file, included first by all compilable
00002    source files (not headers).  */
00003 
00004 #ifndef CONFIG_H
00005 #define CONFIG_H
00006 
00007 /* The stuff from the path searching library.  */
00008 #include <kpathsea/config.h>
00009 
00010 /* How to open files with fopen.  */
00011 #include <kpathsea/c-fopen.h>
00012 
00013 /* How the filenames' parts are separated.  */
00014 #include <kpathsea/c-pathch.h>
00015 
00016 /* Have to get the enum constants below, sigh.  Still better than
00017    repeating the definitions everywhere we need them.  */
00018 #include <kpathsea/tex-file.h>
00019 
00020 #ifdef __STDC__
00021 #define NeedFunctionPrototypes 1
00022 #include <kpathsea/c-proto.h>
00023 #endif
00024 
00025 #include <c-auto.h>
00026 
00027 /* For kpathsea, we don't have paths, we have formats.  This is so
00028    we can do lazy evaluation of only the formats we need, instead of
00029    having to initialize everything in the world.  */
00030 #define figpath kpse_pict_format
00031 #define pictpath kpse_pict_format
00032 #define pkpath kpse_pk_format
00033 #define tfmpath kpse_tfm_format
00034 #define ovfpath kpse_ovf_format
00035 #define ofmpath kpse_ofm_format
00036 #define vfpath kpse_vf_format
00037 #define configpath kpse_dvips_config_format
00038 #define headerpath kpse_tex_ps_header_format
00039 #define type1 kpse_type1_format
00040 #define mappath kpse_fontmap_format
00041 #define encpath kpse_enc_format
00042 
00043 #if (defined (DOS) || defined (MSDOS)) && !defined (__DJGPP__)
00044 #undef DOS
00045 #undef MSDOS
00046 #define DOS
00047 #define MSDOS
00048 #endif
00049 
00050 /* dvips has a different name for this.  */
00051 #if SIZEOF_INT < 4
00052 #define SHORTINT
00053 #endif
00054 
00055 #define READ FOPEN_R_MODE
00056 #define READBIN FOPEN_RBIN_MODE
00057 #define WRITEBIN FOPEN_WBIN_MODE
00058 
00059 /* Include various things by default.  */
00060 #ifndef NO_HPS
00061 #define HPS
00062 #endif
00063 #ifndef NO_TPIC
00064 #define TPIC
00065 #endif
00066 #ifndef NO_EMTEX
00067 #define EMTEX
00068 #endif
00069 
00070 /* Include debugging by default, too.  */
00071 #ifndef NO_DEBUG
00072 #undef DEBUG
00073 #define DEBUG
00074 
00075 /* To pass along to kpathsea.  (Avoid changing debug.h.)  */
00076 #define D_STAT              (1<<9)
00077 #define D_HASH              (1<<10)
00078 #define D_EXPAND     (1<<11)
00079 #define D_SEARCH     (1<<12)
00080 #endif
00081 
00082 /* These are defined under NT, but we have variable names.  */
00083 #undef ERROR
00084 #undef NO_ERROR
00085 
00086 #endif /* not CONFIG_H */