From bf026ab7a3c5eed2800a05592bb9416b449a1aa7 Mon Sep 17 00:00:00 2001 From: John Kerl Date: Sat, 30 Jan 2016 15:17:22 -0500 Subject: [PATCH] neaten --- c/lib/mlrregex.c | 3 +-- c/output/lrec_writer_json.c | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/c/lib/mlrregex.c b/c/lib/mlrregex.c index 3892b8302..1528a3818 100644 --- a/c/lib/mlrregex.c +++ b/c/lib/mlrregex.c @@ -166,8 +166,7 @@ char* regex_gsub(char* input, regex_t* pregex, string_builder_t* psb, char* repl } // ---------------------------------------------------------------- -// xxx double-check this comment after reg_test/run -// Slot 0 is the entire input string. +// Slot 0 is the entire matched input string. // Slots 1 and up are substring matches for parenthesized capture expressions (if any). // Example regex "a(.*)e" with input string "abcde": slot 1 points to "bcd" and match_count = 2. // Slot 2 has rm_so == -1. diff --git a/c/output/lrec_writer_json.c b/c/output/lrec_writer_json.c index c8a501b23..18e116944 100644 --- a/c/output/lrec_writer_json.c +++ b/c/output/lrec_writer_json.c @@ -2,8 +2,6 @@ #include "lib/mlrutil.h" #include "output/lrec_writers.h" -// xxx under construction - typedef struct _lrec_writer_json_state_t { unsigned long long counter;