set_option
Sets various runtime options.
Available in:
Apps (win) |
Apps (char) |
Reportwriter |
RPC |
Standalone PL |
X |
X |
X |
X |
X |
Syntax
int set_option(option[,data])
int option
expr data
Description
The option parameter values are defined in trim.h. The
current value is always returned. Valid values are
soc_heapsize |
Sets the minimum heapsize in bytes. Larger values may improve
performance as fewer heap blocks will be required, e.g. when loading a list,
however there may be wasted memory space. A good start is 32768.
|
soc_ucs2conv |
Sets the default conversion method used to convert between
one and two byte character strings. Option values are:
0 |
Characters are moved to/from 8-bit and 16-bit values (default):
|
cdty_char |
8-bit characters > 127 are converted based upon the definitions
in $TRIM_HOME/lib/dv.a2u.
|
cdty_utf8 |
8-bit characters > 127 are assumed to be utf-8.
|
|
Notes
The soc_ucs2conv option controls the processing of char,
char1, and char1 variables.