Replaced constants 0 and !0 on enums MR_FALSE and MR_TRUE
Renamed field comment into meta
Renamed ext and ptr_type to res (resource) and res_type.