Skip to content

Commit

Permalink
Merge branch 'master' into build/work000 r68230 #158
Browse files Browse the repository at this point in the history
  • Loading branch information
t-tk committed Sep 10, 2023
2 parents b28001c + 0d227bf commit 2411d3d
Show file tree
Hide file tree
Showing 21 changed files with 10,671 additions and 10,652 deletions.
4 changes: 2 additions & 2 deletions source/libs/README
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ graphite2 1.3.14 - checked 10apr20
http://sourceforge.net/projects/silgraphite/files/graphite2/
(requires C++11)

harfbuzz 8.1.1 - checked 03aug23
https://github.com/harfbuzz/harfbuzz/releases/tag/8.1.1
harfbuzz 8.2.0 - checked 09sep23
https://github.com/harfbuzz/harfbuzz/releases/tag/8.2.0

icu 72.1 - checked 07jan23
https://github.com/unicode-org/icu/releases/
Expand Down
4 changes: 0 additions & 4 deletions source/texk/.gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,3 @@
*.bad text eol=lf
*.gasp text eol=lf
*.maxp text eol=lf

# for windows_wrapper
/texlive/windows_wrapper/**/*.c text eol=crlf
/texlive/windows_wrapper/**/*.txt text eol=crlf
8 changes: 8 additions & 0 deletions source/texk/texlive/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
2023-09-10 TANAKA Takuji <[email protected]>

* windows_wrapper/{calldll,callexe,runscript_dll,runscript_exe,
wrunscript_exe}.c, windows_wrapper/{readme,tlmgr-gui}.txt,
windows_wrapper/context/mtxrun_{dll,exe}.c,
windows_wrapper/context/readme.txt:
Convert newline from CRLF to LF.

2023-02-28 Luigi Scarso <[email protected]>

* Makefile.am (EXTRA_DIST): now just windows_wrapper.
Expand Down
26 changes: 13 additions & 13 deletions source/texk/texlive/windows_wrapper/calldll.c
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/* Public domain.
* Originally written by Akira Kakuto <[email protected]>
*
* DLL calling main program for TeX & Co
* DLLPROC must be defined in the Makefile as,
* e.g., -DDLLPROC=dlltexmain.
*/

__declspec(dllimport) DLLPROC(int ac, char **av);
int main(int ac, char **av)
{
return (DLLPROC(ac, av));
}
/* Public domain.
* Originally written by Akira Kakuto <[email protected]>
*
* DLL calling main program for TeX & Co
* DLLPROC must be defined in the Makefile as,
* e.g., -DDLLPROC=dlltexmain.
*/

__declspec(dllimport) DLLPROC(int ac, char **av);
int main(int ac, char **av)
{
return (DLLPROC(ac, av));
}
86 changes: 43 additions & 43 deletions source/texk/texlive/windows_wrapper/callexe.c
Original file line number Diff line number Diff line change
@@ -1,43 +1,43 @@
/* Public domain.
* Originally written by Akira Kakuto <[email protected]>
*
* WIN32 wrapper program replacing Unix symlinks such as,
* e.g., ofm2opl -> omfonts.
*
* EXEPROG must be defined in the Makefile as,
* e.g., -DEXEPROG=\"omfonts.exe\".
*/
#include <stdio.h>
#include <stdlib.h>
#include <process.h>
#include <string.h>
#include <malloc.h>

static int is_include_space(char *s)
{
char *p;
p = strchr(s, ' ');
if(p) return 1;
p = strchr(s, '\t');
if(p) return 1;
return 0;
}

int main(int argc, char *argv[])
{
int i;
char *p;

for(i = 0; i < argc; i++) {
if(is_include_space(argv[i])) {
p = (char *)malloc(strlen(argv[i])+3);
strcpy(p, "\"");
strcat(p, argv[i]);
strcat(p, "\"");
free(argv[i]);
argv[i] = p;
}
}
argv[argc] = NULL;
return _spawnvp(_P_WAIT, EXEPROG, (const char * const *)argv);
}
/* Public domain.
* Originally written by Akira Kakuto <[email protected]>
*
* WIN32 wrapper program replacing Unix symlinks such as,
* e.g., ofm2opl -> omfonts.
*
* EXEPROG must be defined in the Makefile as,
* e.g., -DEXEPROG=\"omfonts.exe\".
*/
#include <stdio.h>
#include <stdlib.h>
#include <process.h>
#include <string.h>
#include <malloc.h>

static int is_include_space(char *s)
{
char *p;
p = strchr(s, ' ');
if(p) return 1;
p = strchr(s, '\t');
if(p) return 1;
return 0;
}

int main(int argc, char *argv[])
{
int i;
char *p;

for(i = 0; i < argc; i++) {
if(is_include_space(argv[i])) {
p = (char *)malloc(strlen(argv[i])+3);
strcpy(p, "\"");
strcat(p, argv[i]);
strcat(p, "\"");
free(argv[i]);
argv[i] = p;
}
}
argv[argc] = NULL;
return _spawnvp(_P_WAIT, EXEPROG, (const char * const *)argv);
}
Loading

0 comments on commit 2411d3d

Please sign in to comment.