-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into build/work000 r68230 #158
- Loading branch information
Showing
21 changed files
with
10,671 additions
and
10,652 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} |
Oops, something went wrong.