30 #define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_CONSOLE 42 static const char ruler[] =
"\t\t\t\t\t\t\t\t\t\t";
85 strcpy(
data, tmp_value);
91 if (scanf(
"\r%c", &
value) != EOF)
111 *(uint32_t *)
data = atoi((
const char *)tmp_value);
117 if (scanf(
"%u", &
value) != EOF)
138 *(uint64_t *)
data = atol((
const char *)tmp_value);
168 const struct m0_xcode_cursor_frame *prev;
192 *(uint32_t *)
ptr = 1;
204 bool skip_next =
false;
217 struct m0_xcode_cursor_frame *
top;
222 const struct m0_xcode_cursor_frame *prev;
231 switch (
top->s_flag) {
252 if (prev->s_fieldno == 1 &&
290 #undef M0_TRACE_SUBSYSTEM
M0_INTERNAL struct m0_xcode_cursor_frame * m0_xcode_cursor_top(struct m0_xcode_cursor *it)
static void u64_set(const struct m0_xcode_type *xct, const char *name, void *data)
M0_INTERNAL void * m0_xcode_addr(const struct m0_xcode_obj *obj, int fileno, uint64_t elno)
static void ptr(struct m0_addb2__context *ctx, const uint64_t *v, char *buf)
const struct m0_xcode_type * xo_type
M0_EXTERN ssize_t m0_xcode_alloc_obj(struct m0_xcode_cursor *it, void *(*alloc)(struct m0_xcode_cursor *, size_t))
static struct buffer * cur(struct m0_addb2_mach *mach, m0_bcount_t space)
void(* catom_val_get)(const struct m0_xcode_type *xct, const char *name, void *data)
static void u32_get(const struct m0_xcode_type *xct, const char *name, void *data)
static void void_get(const struct m0_xcode_type *xct, const char *name, void *data)
int const char const void * value
static struct m0_be_emap_cursor it
struct m0_xcode_field xct_child[0]
void(* catom_val_show)(const struct m0_xcode_type *xct, const char *name, void *data)
static struct m0_xcode_type ** xt[]
static void depth_print(int depth)
void(* catom_val_set)(const struct m0_xcode_type *xct, const char *name, void *data)
static void byte_set(const struct m0_xcode_type *xct, const char *name, void *data)
static int cons_fop_iterate(struct m0_fop *fop, enum m0_cons_data_process_type type)
operation to get value of ATOM type (i.e. CHAR, U64 etc).
M0_INTERNAL uint64_t m0_xcode_tag(const struct m0_xcode_obj *obj)
M0_INTERNAL int m0_cons_fop_fields_show(struct m0_fop *fop)
Iterate over FOP fields and prints the names.
enum m0_xode_atom_type xct_atype
M0_INTERNAL int m0_xcode_next(struct m0_xcode_cursor *it)
M0_INTERNAL int m0_cons_fop_obj_output(struct m0_fop *fop)
Helper function for FOP output.
M0_INTERNAL void * m0_xcode_alloc(struct m0_xcode_cursor *it, size_t nob)
static void console_xc_atom_process(struct m0_xcode_cursor_frame *top, enum m0_cons_data_process_type type)
M0_INTERNAL int m0_cons_fop_obj_input(struct m0_fop *fop)
Helper function for FOP input.
enum m0_xcode_aggr xct_aggr
static struct m0_cons_atom_ops atom_ops[M0_XAT_NR]
Methods to handle U64, U32 etc.
M0_INTERNAL void * m0_cons_yaml_get_value(const char *name)
Search for specified string and set the respctive value form YAML file. (like "name : console") ...
static struct m0_fop * fop
static void byte_get(const struct m0_xcode_type *xct, const char *name, void *data)
static void void_set(const struct m0_xcode_type *xct, const char *name, void *data)
M0_INTERNAL void m0_xcode_skip(struct m0_xcode_cursor *it)
static void * cons_yaml_get_unsafe(const char *name)
static void default_show(const struct m0_xcode_type *xct, const char *name, void *data)
M0_INTERNAL bool yaml_support
static void u32_set(const struct m0_xcode_type *xct, const char *name, void *data)
#define M0_ASSERT_INFO(cond, fmt,...)
M0_INTERNAL void m0_xcode_ctx_init(struct m0_xcode_ctx *ctx, const struct m0_xcode_obj *obj)
#define M0_FOP_XCODE_OBJ(f)
static void u64_get(const struct m0_xcode_type *xct, const char *name, void *data)
m0_cons_data_process_type