mirror of
https://github.com/johnkerl/miller.git
synced 2026-07-28 02:05:36 +00:00
todo
This commit is contained in:
parent
c79718c14a
commit
3d221cf1de
2 changed files with 7 additions and 6 deletions
|
|
@ -34,6 +34,7 @@ typedef struct _lrec_reader_mmap_json_state_t {
|
|||
sllv_t* ptop_level_json_objects;
|
||||
sllv_t* precords;
|
||||
char* input_json_flatten_separator;
|
||||
// xxx detected_line_term
|
||||
} lrec_reader_mmap_json_state_t;
|
||||
|
||||
static void lrec_reader_mmap_json_free(lrec_reader_t* preader);
|
||||
|
|
@ -45,9 +46,9 @@ lrec_reader_t* lrec_reader_mmap_json_alloc(char* input_json_flatten_separator) {
|
|||
lrec_reader_t* plrec_reader = mlr_malloc_or_die(sizeof(lrec_reader_t));
|
||||
|
||||
lrec_reader_mmap_json_state_t* pstate = mlr_malloc_or_die(sizeof(lrec_reader_mmap_json_state_t));
|
||||
pstate->ptop_level_json_objects = sllv_alloc();
|
||||
pstate->precords = sllv_alloc();
|
||||
pstate->input_json_flatten_separator = input_json_flatten_separator;
|
||||
pstate->ptop_level_json_objects = sllv_alloc();
|
||||
pstate->precords = sllv_alloc();
|
||||
pstate->input_json_flatten_separator = input_json_flatten_separator;
|
||||
|
||||
plrec_reader->pvstate = (void*)pstate;
|
||||
plrec_reader->popen_func = file_reader_mmap_vopen;
|
||||
|
|
|
|||
|
|
@ -61,9 +61,6 @@ AUTOTERM
|
|||
? input/lrec_reader_mmap_json.c
|
||||
? input/lrec_reader_stdio_json.c
|
||||
|
||||
? input/lrec_reader_mmap_csv.c
|
||||
? input/lrec_reader_stdio_csv.c
|
||||
|
||||
|
||||
k input/lrec_reader_mmap_dkvp.c
|
||||
k input/lrec_reader_stdio_dkvp.c
|
||||
|
|
@ -74,6 +71,9 @@ AUTOTERM
|
|||
k input/lrec_reader_mmap_csvlite.c
|
||||
k input/lrec_reader_stdio_csvlite.c
|
||||
|
||||
k input/lrec_reader_mmap_csv.c
|
||||
k input/lrec_reader_stdio_csv.c
|
||||
|
||||
|
||||
* ors=auto means:
|
||||
k writer API needs pctx
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue