beta-0.89.2
[luatex.git] / source / texk / kpathsea / win32 / mktex.h
blobb4deb0eba7b17e02ec715fb31b006bc3aa8af5d3
1 /* mktex.h
3 Copyright 2000, 2015 Akira Kakuto.
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public License
16 along with this library; if not, see <http://www.gnu.org/licenses/>.
19 #ifndef MKTEX_H
20 #define MKTEX_H
22 static inline void
23 normalize (char *p) {
24 for (; *p; p++) {
25 if (IS_KANJI(p))
26 p++;
27 else if (*p == '\\')
28 *p = '/';
32 /* dirutil.c */
33 extern int is_dir (char *buff);
34 extern int make_dir (char *buff);
35 extern int make_dir_p (char *buff);
37 /* getdestdir.c
39 from mktexmf:
40 argv[0] = "Dummy", argv[1] = "source", argv[2] = path
41 from mktexpk:
42 argv[0] = "Dummy", argv[1] = "pk", argv[2] = path, argv[3] = mode
43 from mktextfm:
44 argv[0] = "Dummy", argv[1] = "tfm", argv[2] = path
46 extern char *getdestdir (int ac, char **av);
48 /* mkpaths.c */
49 extern char **mkpaths (int *numptr);
51 /* mktexupd.c*/
52 extern void mktexupd (char *s);
54 #endif