comparison src/callproc.c @ 23462:aaad8461ff34

(Fcall_process): Use $TMPDIR instead of trying $TMP and $TEMP, since the former is always set in msdos.c. (Fcall_process_region): When looking for a place to put the temporary files, check $TMPDIR as well.
author Eli Zaretskii <eliz@gnu.org>
date Wed, 14 Oct 1998 15:17:11 +0000
parents 0e2635f13ea9
children b08de5b1299c
comparison
equal deleted inserted replaced
23461:b84718f930f8 23462:aaad8461ff34
437 } 437 }
438 else 438 else
439 new_argv[1] = 0; 439 new_argv[1] = 0;
440 440
441 #ifdef MSDOS /* MW, July 1993 */ 441 #ifdef MSDOS /* MW, July 1993 */
442 if ((outf = egetenv ("TMP")) || (outf = egetenv ("TEMP"))) 442 if ((outf = egetenv ("TMPDIR")))
443 strcpy (tempfile = alloca (strlen (outf) + 20), outf); 443 strcpy (tempfile = alloca (strlen (outf) + 20), outf);
444 else 444 else
445 { 445 {
446 tempfile = alloca (20); 446 tempfile = alloca (20);
447 *tempfile = '\0'; 447 *tempfile = '\0';
809 int i; 809 int i;
810 #ifdef DOS_NT 810 #ifdef DOS_NT
811 char *tempfile; 811 char *tempfile;
812 char *outf = '\0'; 812 char *outf = '\0';
813 813
814 if ((outf = egetenv ("TMP")) || (outf = egetenv ("TEMP"))) 814 if ((outf = egetenv ("TMPDIR"))
815 || (outf = egetenv ("TMP"))
816 || (outf = egetenv ("TEMP")))
815 strcpy (tempfile = alloca (strlen (outf) + 20), outf); 817 strcpy (tempfile = alloca (strlen (outf) + 20), outf);
816 else 818 else
817 { 819 {
818 tempfile = alloca (20); 820 tempfile = alloca (20);
819 *tempfile = '\0'; 821 *tempfile = '\0';