mirror of
https://github.com/johnkerl/miller.git
synced 2026-07-22 15:37:59 +00:00
neaten
This commit is contained in:
parent
69cc25593d
commit
07b0d0e649
2 changed files with 1 additions and 7 deletions
|
|
@ -82,8 +82,6 @@ static slls_t* lrec_reader_csv_get_fields(lrec_reader_csv_state_t* pstate);
|
|||
static lrec_t* paste_header_and_data(lrec_reader_csv_state_t* pstate, slls_t* pdata_fields);
|
||||
|
||||
// ----------------------------------------------------------------
|
||||
// xxx needs abend on null lhs. etc.
|
||||
|
||||
static lrec_t* lrec_reader_csv_process(void* pvstate, void* pvhandle, context_t* pctx) {
|
||||
lrec_reader_csv_state_t* pstate = pvstate;
|
||||
|
||||
|
|
@ -94,7 +92,7 @@ static lrec_t* lrec_reader_csv_process(void* pvstate, void* pvhandle, context_t*
|
|||
pstate->ilno++;
|
||||
|
||||
for (sllse_t* pe = pheader_fields->phead; pe != NULL; pe = pe->pnext) {
|
||||
if (*pe->value == 0) { // xxx to do: get file-name/line-number context in here.
|
||||
if (*pe->value == 0) {
|
||||
fprintf(stderr, "%s: unacceptable empty CSV key at file \"%s\" line %lld.\n",
|
||||
MLR_GLOBALS.argv0, pctx->filename, pstate->ilno);
|
||||
exit(1);
|
||||
|
|
|
|||
|
|
@ -51,10 +51,6 @@ typedef struct _lrec_reader_stdio_csvlite_state_t {
|
|||
// 3,4,5,6 3,4,5
|
||||
|
||||
// ----------------------------------------------------------------
|
||||
// xxx needs abend on null lhs.
|
||||
//
|
||||
// etc.
|
||||
|
||||
static lrec_t* lrec_reader_stdio_csvlite_process(void* pvstate, void* pvhandle, context_t* pctx) {
|
||||
FILE* input_stream = pvhandle;
|
||||
lrec_reader_stdio_csvlite_state_t* pstate = pvstate;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue