Skip to content
Snippets Groups Projects
Commit fcf91dfe authored by rswindell's avatar rswindell
Browse files

Added configurable JavaScript heap/context size startup parameters.

parent 2a1d74f6
No related branches found
No related tags found
No related merge requests found
......@@ -57,6 +57,8 @@ typedef struct {
DWORD interface_addr;
DWORD options; /* See MAIL_OPT definitions */
DWORD max_msg_size;
DWORD js_max_bytes;
DWORD js_cx_stack;
void* cbdata; /* Private data passed to callbacks */
......
......@@ -422,6 +422,12 @@ void sbbs_read_ini(
SAFECOPY(mail->proc_cfg_file
,iniGetString(fp,section,"ProcessConfigFile","mailproc.cfg",value));
/* JavaScript Operating Parameters */
mail->js_max_bytes
=iniGetInteger(fp,section,strJavaScriptMaxBytes ,js_max_bytes);
mail->js_cx_stack
=iniGetInteger(fp,section,strJavaScriptContextStack ,js_cx_stack);
mail->log_mask
=iniGetBitField(fp,section,strLogMask,log_mask_bits,log_mask);
mail->options
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment