diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2011-08-10 06:20:40 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2011-08-10 06:20:40 +0000 |
commit | 56e0b73ad25c9335dbb3f13d12e117ed5ccc34e6 (patch) | |
tree | a7ce24a19af5318af7d3426e0eaf52a17a465e8b /Build/source/texk/kpathsea/win32/mktexpk.c | |
parent | e9b6e32afa1f6ee5db62ee28bf91cc4a4737f48b (diff) |
WIN32: more C program replacements for Unix shell scripts (from Akira's W32TeX)
git-svn-id: svn://tug.org/texlive/trunk@23477 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/kpathsea/win32/mktexpk.c')
-rw-r--r-- | Build/source/texk/kpathsea/win32/mktexpk.c | 29 |
1 files changed, 7 insertions, 22 deletions
diff --git a/Build/source/texk/kpathsea/win32/mktexpk.c b/Build/source/texk/kpathsea/win32/mktexpk.c index 5445dfb4eac..e4f23087644 100644 --- a/Build/source/texk/kpathsea/win32/mktexpk.c +++ b/Build/source/texk/kpathsea/win32/mktexpk.c @@ -28,17 +28,8 @@ */ #include <kpathsea/kpathsea.h> -#include <stdio.h> -#include <string.h> -#include <stdlib.h> -#include <ctype.h> -#include <fcntl.h> -#include <direct.h> -#include <io.h> -#include <malloc.h> -#include <process.h> -#include <direct.h> +#include "dirutil.h" #include "getdestdir.h" #include "mktexupd.h" @@ -269,12 +260,10 @@ main (int ac, char **av) */ for (fpp = tmp; *fpp; fpp++) { - if (isknj (*fpp)) { - if(*(fpp+1)) fpp++; - continue; - } if (*fpp == '\\') *fpp = '/'; + else if (IS_KANJI(fpp)) + fpp++; } for (i = 0; i < 4; i++) @@ -623,12 +612,10 @@ main (int ac, char **av) return (100); } for (fpp = currdir; *fpp; fpp++) { - if (isknj (*fpp)) { - if(*(fpp+1)) fpp++; - continue; - } if (*fpp == '\\') *fpp = '/'; + else if (IS_KANJI(fpp)) + fpp++; } i = strlen (currdir); @@ -663,12 +650,10 @@ main (int ac, char **av) */ for (p = rbuff; *p; p++) { - if (isknj (*p)) { - if(*(p+1)) p++; - continue; - } if (*p == '\\') *p = '/'; + else if (IS_KANJI(p)) + p++; } p = rbuff; |