did some preparatory work to add Process

This commit is contained in:
hyunghwan.chung
2015-10-14 14:01:33 +00:00
parent 6916198253
commit 5a82cdc417
9 changed files with 98 additions and 5 deletions

View File

@ -135,6 +135,10 @@ int stix_setoption (stix_t* stix, stix_option_t id, const void* value)
case STIX_SYSDIC_SIZE:
stix->option.dfl_sysdic_size = *(stix_oow_t*)value;
return 0;
case STIX_PROCSTK_SIZE:
stix->option.dfl_procstk_size = *(stix_oow_t*)value;
return 0;
}
stix->errnum = STIX_EINVAL;
@ -151,9 +155,15 @@ int stix_getoption (stix_t* stix, stix_option_t id, void* value)
case STIX_SYMTAB_SIZE:
*(stix_oow_t*)value = stix->option.dfl_symtab_size;
return 0;
case STIX_SYSDIC_SIZE:
*(stix_oow_t*)value = stix->option.dfl_sysdic_size;
return 0;
case STIX_PROCSTK_SIZE:
*(stix_oow_t*)value = stix->option.dfl_procstk_size;
return 0;
};
stix->errnum = STIX_EINVAL;