SPLCOMPILEALL

Purpose:

Compiles one or more SPL function files into OPL files.

Syntax:

SPLCOMPILEALL(

"filespec", recurse, overwrite, expand, load, verbose)

"filespec"

-

String. The SPL filename specification with optional * or ? wildcard characters.

recurse

-

Optional. An integer, recurse flag.

 

0:

do not recurse into sub-directories (default)

 

1:

recurse into sub-directories

overwrite

-

Optional. An integer, replace macro flag.

 

0:

do not replace macro of same name

 

1:

replace macro if it exists (default)

expand

-

Optional. An integer, include source code.

 

0:

do not include source code in OPL file (default)

 

1:

include source code

load

-

Optional. An integer, load flag.

 

0:

do not load function into memory (default)

 

1:

load function into memory (default)

verbose

-

Optional. An integer, message flag.

 

0:

do not provide error messages

 

1:

display compile errors (default)

Returns:

An integer, the number of files compiled.

Example:

splcompileall(".\spl\dsp\*.spl")

 

Compiles all SPL files in the .\spl\dsp, directory.

Example:

splcompileall(".\spl\*.spl", 1)

 

Compiles all SPL files in the .\spl directory including sub-directories.

Example:

splcompileall(".\spl\*.spl", 1, 1, )

 

Same as above except the compiled functions are also loaded into memory.

Remarks:

SPLCOMPILEALL creates OPL files. Set the LOAD option to 1 to also load the functions into the Worksheet.

 

Any errors found during compile are written to the ASCII text file, filename.err.

See Also:

FUNCTIONS

SPLCOMPILE

SPLLOAD

SPLLOADALL

SPLREAD

SPLWRITE