wdvi

network DVI viewer
Log | Files | Refs

commit 3fcea2b64ef6b7fda4777e804edbfea55391dcce
parent e4011069bfbaa17e7efd802b25c0ab384f7a2593
Author: Kyle Milz <krwmilz@gmail.com>
Date:   Sun, 29 Aug 2021 16:32:28 +0000

Move remaining config.h variables into files

Diffstat:
Mdvi-draw.c | 2++
Mfilefind.c | 5+++++
Mfont-open.c | 18++++++++++++++++++
Mxdvi.h | 5+++--
4 files changed, 28 insertions(+), 2 deletions(-)

diff --git a/dvi-draw.c b/dvi-draw.c @@ -39,6 +39,8 @@ NOTE: #include "dvi.h" +#define DEFAULT_SOURCE_PATH ".:%S" /* files edited by source specials */ + static struct frame frame0; /* dummy head of list */ #ifdef TEXXET static struct frame *scan_frame; /* head frame for scanning */ diff --git a/filefind.c b/filefind.c @@ -41,6 +41,11 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #include "filf-app.h" /* application-related declarations & defs */ #include "filefind.h" + +/* default list of texmf trees */ +#define DEFAULT_TEXMF_PATH "/usr/local/share/texmf-dist" + + #ifndef XtNumber #define XtNumber(array) (sizeof(array) / sizeof(*array)) #endif diff --git a/font-open.c b/font-open.c @@ -42,6 +42,24 @@ NOTE: #define DEFAULT_TAIL "/%f.%d%p" #define DEFAULT_VF_TAIL "/%f.vf" +#define DEFAULT_FONT_PATH ".:%S" /* font searching */ +#define DEFAULT_VF_PATH ".:%S" /* virtual-font searching */ +#define DEFAULT_DVIPS_CF_PATH ".:%S" /* dvips config file searching */ +#define DEFAULT_FONTMAP_PATH ".:%S" /* dvips-style fontmap searching */ +#define DEFAULT_ENC_PATH ".:%S" /* encoding file searching */ +#define DEFAULT_TYPE1_PATH ".:%S" /* Type 1 font file searching */ + +/* + * gs -h | sed \ + * -e '1,/Search path:/d' \ + * -e '/For more information/,$d' \ + * -e '/Initialization files are compiled/d' \ + * -e 's/$/\/\/\//' \ + * -e 's/^ //' \ + * | tr '\n' '/' + */ +#define DEFAULT_GS_LIB_PATH "/usr/local/share/ghostscript/9.07/Resource/Init:/usr/local/share/ghostscript/9.07/lib:/usr/local/share/ghostscript/9.07/Resource/Font:/usr/local/share/fonts/ghostscript" + #ifndef DEFAULT_FONT_SIZES /* default sizes for current dpi */ #define DEFAULT_FONT_SIZES "m0:m0.5:m1:m2:m3:m4:m5" diff --git a/xdvi.h b/xdvi.h @@ -36,8 +36,6 @@ NOTE: * The C environment * *******************************/ -#include "config.h" - #include <stddef.h> #include <stdlib.h> @@ -55,6 +53,9 @@ NOTE: #define WORDS_BIGENDIAN 1 #endif +#define MKTEXPK 1 /* automatically create missing pixel files */ +#define TEXXET 1 /* Define to enable right-to-left typesetting. */ + #undef CFGFILE /* no cheating */ #if defined(DEFAULT_CONFIG_PATH)