9. DONE Step Type Flag

CLOSED: [2019-02-22 Fri 19:38]

9.1. DONE Step Type Flag Declaration

CLOSED: [2019-02-18 Mon 18:40] The typeflag is stored as a global variable called step_type. It is initialized to be 0.

<<step_typeflag>>=
static int step_type = 0;

9.2. DONE Step Type Flag Set

CLOSED: [2019-02-18 Mon 18:41] This is set during runtime.

<<step_runtime_init>>=
step_type = monolith_dict_newtype(monolith_dict_get(m));

9.3. DONE Step Type Flag Check

CLOSED: [2019-02-18 Mon 18:41] A page is checked if it is of type "step" via the funciton is_step.

<<step_function_declarations>>=
static int is_step(monolith_page *pg);
<<step_functions>>=
static int is_step(monolith_page *pg)
{
    int type;
    type = monolith_page_type_get(pg);
    if(type == 0) return 0;
    return type == step_type;
}



prev | home | next