From 605454b4e8ddcd94ba599b2dac90862abdcd2ee1 Mon Sep 17 00:00:00 2001 From: Takuji Tanaka Date: Sat, 24 Jul 2021 13:25:06 +0000 Subject: web2c/synctexdir: apply patch of W32TeX (Windows only) git-svn-id: svn://tug.org/texlive/trunk@60035 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/web2c/synctexdir/ChangeLog | 4 +++- Build/source/texk/web2c/synctexdir/synctex_main.c | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'Build/source') diff --git a/Build/source/texk/web2c/synctexdir/ChangeLog b/Build/source/texk/web2c/synctexdir/ChangeLog index c814bf50726..b9c8399cecd 100644 --- a/Build/source/texk/web2c/synctexdir/ChangeLog +++ b/Build/source/texk/web2c/synctexdir/ChangeLog @@ -1,7 +1,9 @@ 2021-07-24 TANAKA Takuji - * synctex-main.c (synctex_test_file): + * synctex_main.c (synctex_test_file): Output not "compress mode" but "io mode". + * synctex_main.c: + Apply patch of W32TeX by Kakuto-san. (Windows only). 2021-03-23 Karl Berry diff --git a/Build/source/texk/web2c/synctexdir/synctex_main.c b/Build/source/texk/web2c/synctexdir/synctex_main.c index 5e2579e2652..fbf0e141f01 100644 --- a/Build/source/texk/web2c/synctexdir/synctex_main.c +++ b/Build/source/texk/web2c/synctexdir/synctex_main.c @@ -97,9 +97,11 @@ inline static double my_fmax(double x, double y) { return (x < y) ? y : x; } #endif +/* I use the definition in kpathsea --ak #ifdef WIN32 # define snprintf _snprintf #endif +*/ #if SYNCTEX_DEBUG # ifdef WIN32 @@ -125,6 +127,9 @@ int synctex_test(int argc, char *argv[]); int main(int argc, char *argv[]) { int arg_index = 1; +#ifdef WIN32 + kpse_set_program_name(argv[0], "synctex"); +#endif printf("This is SyncTeX command line utility, version " SYNCTEX_CLI_VERSION_STRING "\n"); if(arg_index