diff options
author | Karl Berry <karl@freefriends.org> | 2006-01-17 21:41:51 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-01-17 21:41:51 +0000 |
commit | 487ca4806cc046076293cf6cc5fbba0db282bac7 (patch) | |
tree | 847b412ab5158dd7bdd7ed7e5a4cc3fbca94be32 /Build/source/texk/ps2pkm/basics.h | |
parent | a3d3111bfe26b8e5f5bc6049dfb2a4ca2edc7881 (diff) |
texk 1
git-svn-id: svn://tug.org/texlive/trunk@1485 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/ps2pkm/basics.h')
-rw-r--r-- | Build/source/texk/ps2pkm/basics.h | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/Build/source/texk/ps2pkm/basics.h b/Build/source/texk/ps2pkm/basics.h new file mode 100644 index 00000000000..aba1db8b078 --- /dev/null +++ b/Build/source/texk/ps2pkm/basics.h @@ -0,0 +1,90 @@ +/* FILE: basics.h + * PURPOSE: basic definitions + * AUTHOR: Piet Tutelaers + * VERSION: 1.0 (September 1995) + */ + + +#ifndef NOBASICS + +#if defined(KPATHSEA) +# include <kpathsea/config.h> +# include <kpathsea/c-pathch.h> +# include <kpathsea/c-fopen.h> +# include <c-auto.h> +# define PATHSEP ENV_SEP +# define DIRSEP DIR_SEP +# define RB FOPEN_RBIN_MODE +# define WB FOPEN_WBIN_MODE +# if defined(DOSISH) +# define ESCAPECHAR '!' +# define RECURSIVE "!!" +# endif /* DOSISH */ +# define basename ps2pk_basename +#elif defined(MSDOS) || defined(WIN32) +# define PATHSEP ';' +# define DIRSEP '\\' +# define ESCAPECHAR '!' +# define RECURSIVE "!!" +# define PSRES_NAME "psres.dpr" +# define RB "rb" +# define WB "wb" +#endif + +#ifndef PATHSEP +#define PATHSEP ':' +#endif + +#ifndef DIRSEP +#define DIRSEP '/' +#endif + +#ifndef ESCAPECHAR +#define ESCAPECHAR '\\' +#endif + +#ifndef RECURSIVE +#define RECURSIVE "//" +#endif + +/* TeX PS Resource database name */ +#ifndef PSRES_NAME +#define PSRES_NAME "PSres.upr" +#endif + +#ifndef RB +#define RB "r" +#endif + +#ifndef WB +#define WB "w" +#endif + +#ifndef MAXPATHLEN +#define MAXPATHLEN 256 +#endif + +#ifndef MAXSTRLEN +#define MAXSTRLEN 256 +#endif + +#ifndef IS_DIR_SEP +#define IS_DIR_SEP(c) ((c) == DIRSEP) +#endif + +#define NOBASICS +#endif + +#include <stdarg.h> + +void fatal(char *fmt, ...); +void msg(char *fmt, ...); + +/* For debugging purposes it is handy to have a fopen() function that + * shows which files are opened. + */ + +#include <stdio.h> + +#include <sys/types.h> /* struct stat */ +#include <sys/stat.h> /* stat() */ |