summaryrefslogtreecommitdiff
path: root/Build/source/texk/ttf2pk2/emtexdir.h
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2011-05-02 13:18:14 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2011-05-02 13:18:14 +0000
commit2ba98f9a00f1b34455b12ef44c361154b48000c6 (patch)
tree5dd3ffba80490ec11a173f38f8a8f52277ac4509 /Build/source/texk/ttf2pk2/emtexdir.h
parent9b5f1f3915e6c11001ef9c48efd372e93cbf7ab3 (diff)
Add texk/ttf2pk2 (ttf2pk-frretype2), at the moment not built by default
git-svn-id: svn://tug.org/texlive/trunk@22282 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/ttf2pk2/emtexdir.h')
-rw-r--r--Build/source/texk/ttf2pk2/emtexdir.h60
1 files changed, 60 insertions, 0 deletions
diff --git a/Build/source/texk/ttf2pk2/emtexdir.h b/Build/source/texk/ttf2pk2/emtexdir.h
new file mode 100644
index 00000000000..5e81a71c4d2
--- /dev/null
+++ b/Build/source/texk/ttf2pk2/emtexdir.h
@@ -0,0 +1,60 @@
+/* emtexdir.h -- written by Eberhard Mattes, donated to the public domain */
+
+#if !defined (_EMTEXDIR_H)
+#define _EMTEXDIR_H
+
+#if defined (__cplusplus)
+extern "C" {
+#endif
+
+
+/* Flags for emtex_dir_setup */
+
+#define EDS_ONESUBDIR 0x0001
+#define EDS_ALLSUBDIR 0x0002
+#define EDS_BANG 0x0004
+
+/* Flags for emtex_dir_find */
+
+#define EDF_CWD 0x0001
+#define EDF_FSLASH 0x0002
+#define EDF_TRACE 0x8000
+
+/* Methods for emtex_dir_trunc */
+
+#define EDT_5_PLUS_3 0 /* 5+3.3 */
+#define EDT_8 1 /* 8.3 */
+
+/* Return values for emtex_dir_trunc */
+
+#define EDT_UNCHANGED 0 /* Path name not changed */
+#define EDT_CHANGED 1 /* Path name truncated */
+#define EDT_TOOLONG 2 /* Path name too long */
+#define EDT_INVALID 3 /* Path name invalid */
+
+struct emtex_dir
+{
+ char **list;
+ int used;
+ int alloc;
+};
+
+extern void (*emtex_dir_find_callback)(const char *name, int ok);
+
+extern int setup_list(struct emtex_dir *dst, char *path,
+ const char *list, unsigned flags);
+
+int emtex_dir_setup (struct emtex_dir *ed, const char *env, const char *dir,
+ unsigned flags);
+
+int emtex_dir_find (char *path, size_t path_size, const struct emtex_dir *ed,
+ const char *fname, unsigned flags);
+
+int emtex_dir_trunc (char *dst, size_t dst_size, const char *src,
+ unsigned flags, int method);
+
+#if defined (__cplusplus)
+}
+#endif
+
+#endif /* !defined (_EMTEXDIR_H) */