- }
- else if (cstring.strcmp(opt_name, "sentinel") == 0)
- {
- if (opt_value[0] == '\0')
- options.sentinel = true;
- else
- options.sentinel = (cstdlib.atoi(opt_value) != 0);
- }
- else if (cstring.strcmp(opt_name, "mem_stomp") == 0)
- {
- if (opt_value[0] == '\0')
- options.mem_stomp = true;
- else
- options.mem_stomp = (cstdlib.atoi(opt_value) != 0);
- }
+ else if (cstr_eq(opt_name, "sentinel"))
+ options.sentinel = parse_bool(opt_value);
+ else if (cstr_eq(opt_name, "mem_stomp"))
+ options.mem_stomp = parse_bool(opt_value);
+ else if (cstr_eq(opt_name, "conservative"))
+ options.conservative = parse_bool(opt_value);