| 1 |
/* mktex.h |
| 2 |
|
| 3 |
Copyright 2000, 2016 Akira Kakuto. |
| 4 |
|
| 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. |
| 9 |
|
| 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. |
| 14 |
|
| 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/>. |
| 17 |
*/ |
| 18 |
|
| 19 |
#ifndef MKTEX_H |
| 20 |
#define MKTEX_H |
| 21 |
|
| 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 = '/'; |
| 29 |
} |
| 30 |
} |
| 31 |
|
| 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); |
| 36 |
|
| 37 |
/* getdestdir.c |
| 38 |
|
| 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 |
| 45 |
*/ |
| 46 |
extern char *getdestdir (int ac, char **av); |
| 47 |
|
| 48 |
/* mkpaths.c */ |
| 49 |
extern char **mkpaths (int *numptr); |
| 50 |
|
| 51 |
/* mktexupd.c*/ |
| 52 |
extern void mktexupd (char *s); |
| 53 |
|
| 54 |
#endif |