summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
authorTakuji Tanaka <ttk@t-lab.opal.ne.jp>2021-07-24 13:25:06 +0000
committerTakuji Tanaka <ttk@t-lab.opal.ne.jp>2021-07-24 13:25:06 +0000
commit605454b4e8ddcd94ba599b2dac90862abdcd2ee1 (patch)
treea5e29f02f07f6639a6b8aa87c854184b75c6832a /Build
parente2668a01c1e631e81057cba960c941c394e9cd7e (diff)
web2c/synctexdir: apply patch of W32TeX (Windows only)
git-svn-id: svn://tug.org/texlive/trunk@60035 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r--Build/source/texk/web2c/synctexdir/ChangeLog4
-rw-r--r--Build/source/texk/web2c/synctexdir/synctex_main.c5
2 files changed, 8 insertions, 1 deletions
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 <ttk@t-lab.opal.ne.jp>
- * 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 <karl@tug.org>
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<argc) {
if(0==strcmp("help",argv[arg_index])) {