INNER CODE UNIT · C

i

1oom-fork/1oom · src/cfg.c:116

            i = ctx->module->items;
        }
        ctx->item = i;
    }
    switch (item->type) {
        case CFG_TYPE_INT:
            {
                uint32_t v;
                if (!util_parse_number(ival, &v)) {
                    log_error("Cfg: invalid value on line %i\n", lnum);
                    return -1;
                }
                if (item->check && (!item->check((void *)(intptr_t)(int)v))) {
                    log_warning("Cfg: item failed check on line %i\n", lnum);
                    return -1;
                }
                *((int *)item->var) = (int)v;
            }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…