Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions doc/manual/prepro.tex
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ \section{The preprocessor variables}
processes in a job use the same number. A recovered session from
a checkpoint (\ref{checkpoints}) keeps using the PID of the
crushed session.
\item[FORMTMP\_] The path of the FORMTMP directory.
\item[FORMTMPSORT\_] The path of the FORMTMPSORT directory.
\item[STOPWATCH\_] Same as `TIMER\_'.
\item[SYSTEMERROR\_] The return value of the last \#system\ref{presystem}
command when invoked with the -e\index{SYSTEMERROR\_} option.
Expand Down
6 changes: 6 additions & 0 deletions sources/startup.c
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,12 @@ VOID ReserveTempFiles(int par)
if ( AM.TempSortDir == 0 ) AM.TempSortDir = AM.TempDir;
}
}
/*
Make these paths available to the user as pre-processor variables:
*/
PutPreVar((UBYTE *)"FORMTMP_", AM.TempDir, 0, 0);
PutPreVar((UBYTE *)"FORMTMPSORT_", AM.TempSortDir, 0, 0);

/*
We have now in principle a path but we will use its first element only.
Later that should become more complicated. Then we will use a path and
Expand Down