Re: [Sablevm-developer] Re: Config File Parsing
Brought to you by:
egagnon
From: Etienne M. G. <eg...@j-...> - 2000-12-05 22:51:29
|
"Etienne M. Gagnon" wrote: > .... You can assume that there is a SYSCONFDIR > (#defined in config.h) that will contain this path (typically: > "/usr/local/etc"). This is now done. Simply type "cvs update" in your root sablevm directory. > realloc won't work for argv. So what you must do is: ... char **all_opts; ... all_opts = malloc (sizeof (char *) * (argc + config_opts_count)); ... then, ... context = poptGetContext ("sablevm", argc + config_opts_count, (const char **) all_opts, options, 0); ... -- ---------------------------------------------------------------------- Etienne M. Gagnon, M.Sc. e-mail: eg...@j-... Author of SableCC: http://www.sable.mcgill.ca/sablecc/ and SableVM: http://www.sablevm.org/ ---------------------------------------------------------------------- |