Lines Matching refs:xop
164 csv_dbg (xo_handle_t *xop UNUSED, csv_private_t *csv UNUSED, in csv_dbg()
182 csv_create (xo_handle_t *xop) in csv_create() argument
196 xo_set_private(xop, csv); in csv_create()
205 csv_destroy (xo_handle_t *xop UNUSED, csv_private_t *csv) in csv_destroy()
271 csv_quote_flags (xo_handle_t *xop UNUSED, csv_private_t *csv UNUSED, in csv_quote_flags()
293 csv_dbg(xop, csv, "csv: quote flags [%s] -> %x (%zu/%zu)\n", in csv_quote_flags()
337 csv_emit_record (xo_handle_t *xop, csv_private_t *csv) in csv_emit_record() argument
339 csv_dbg(xop, csv, "csv: emit: ...\n"); in csv_emit_record()
375 quote_flags = csv_quote_flags(xop, csv, value); in csv_emit_record()
395 if (xo_get_flags(xop) & (XOF_FLUSH | XOF_FLUSH_LINE)) in csv_emit_record()
396 xo_flush_h(xop); in csv_emit_record()
421 csv_open_level (xo_handle_t *xop UNUSED, csv_private_t *csv, in csv_open_level()
427 csv_emit_record(xop, csv); in csv_open_level()
436 csv_dbg(xop, csv, "csv: recording (no-path) ...\n"); in csv_open_level()
443 csv_dbg(xop, csv, "csv: match: [%s] (%zd/%zd)\n", name, in csv_open_level()
448 csv_dbg(xop, csv, "csv: recording ...\n"); in csv_open_level()
463 csv_close_level (xo_handle_t *xop UNUSED, csv_private_t *csv, const char *name) in csv_close_level()
468 csv_emit_record(xop, csv); in csv_close_level()
472 csv_dbg(xop, csv, "csv: close: [%s] [%s] (%zd)\n", name, in csv_close_level()
493 csv_leaf_num (xo_handle_t *xop UNUSED, csv_private_t *csv, in csv_leaf_num()
545 csv_dbg(xop, csv, "csv: leaf: name: %zd [%s] [%s] %x\n", in csv_leaf_num()
555 csv_leaf_set (xo_handle_t *xop UNUSED, csv_private_t *csv, leaf_t *lp, in csv_leaf_set()
566 csv_dbg(xop, csv, "csv: leaf: value: [%s] [%s] %x\n", in csv_leaf_set()
575 csv_record_leafs (xo_handle_t *xop, csv_private_t *csv, const char *leafs_raw) in csv_record_leafs() argument
591 csv_dbg(xop, csv, "adding leaf: [%s]\n", cp); in csv_record_leafs()
592 csv_leaf_num(xop, csv, cp, 0); in csv_record_leafs()
608 csv_record_path (xo_handle_t *xop, csv_private_t *csv, const char *path_raw) in csv_record_path() argument
628 xo_failure(xop, "allocation failure for path '%s'", path_buf); in csv_record_path()
640 csv_dbg(xop, csv, "path: [%s]\n", cp); in csv_record_path()
664 csv_options (xo_handle_t *xop, csv_private_t *csv, in csv_options() argument
684 if (vp != NULL && csv_record_path(xop, csv, vp)) in csv_options()
693 if (vp != NULL && csv_record_leafs(xop, csv, vp)) in csv_options()
709 xo_warn_hc(xop, -1, in csv_options()
723 csv_data (xo_handle_t *xop UNUSED, csv_private_t *csv UNUSED, in csv_data()
727 csv_dbg(xop, csv, "data: [%s]=[%s] %llx\n", name, value, (unsigned long long) flags); in csv_data()
733 int fnum = csv_leaf_num(xop, csv, name, flags); in csv_data()
738 csv_leaf_set(xop, csv, lp, value); in csv_data()
754 csv_dbg(xop, csv, "op %s: [%s] [%s]\n", xo_encoder_op_name(op), in csv_handler()
764 rc = csv_create(xop); in csv_handler()
768 rc = csv_options(xop, csv, value, ':'); in csv_handler()
772 rc = csv_options(xop, csv, value, '+'); in csv_handler()
781 rc = csv_open_level(xop, csv, name, 0); in csv_handler()
785 rc = csv_open_level(xop, csv, name, 1); in csv_handler()
791 rc = csv_close_level(xop, csv, name); in csv_handler()
796 rc = csv_data(xop, csv, name, value, flags); in csv_handler()
811 csv_destroy(xop, csv); in csv_handler()