From 3d221cf1dea7c60086c5ff2b999bfa76f0f2245d Mon Sep 17 00:00:00 2001 From: John Kerl Date: Sun, 29 Jan 2017 23:14:14 -0500 Subject: [PATCH] todo --- c/input/lrec_reader_mmap_json.c | 7 ++++--- c/todo.txt | 6 +++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/c/input/lrec_reader_mmap_json.c b/c/input/lrec_reader_mmap_json.c index f01395697..a1503e0d9 100644 --- a/c/input/lrec_reader_mmap_json.c +++ b/c/input/lrec_reader_mmap_json.c @@ -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; diff --git a/c/todo.txt b/c/todo.txt index eec802f5b..ad6728e4f 100644 --- a/c/todo.txt +++ b/c/todo.txt @@ -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