EXEC
is a new command that will potentially
cope with different sorting and storage algorithms
.
This command allows the inclusion of externally defined and generated
subroutines.
EXEC <function-name> [<sortargi> ]r INIT [<initargi>]r
where
<function-name> = string, eg. sym, symcomp1, ...
<sortargi> = runtime arguments, sortwords, specnames, etc.
<initargi> = <function-name> dependent initialisation, eg. filenames
<function-name> is a string by which the new external command is known. The arguments associated with the <function-name> command are specific to that command. There are two sets of arguments, associated with the two necessary routines defined below ...
execinit_<function-name>(initargi, ...)
execsort_<function-name>(sortargi, ...)
These routines must exist in the sort library that the sort compiler reads at link time. The first one is called when the program first starts. The second one is called at the point the exec command is specified in the sort language file.