Skip to content

v0.3.6

Choose a tag to compare

@davidesantangelo davidesantangelo released this 03 Apr 15:42
· 86 commits to main since this release

Changed

  • Summary Output Format: Modified the summary line printed when not using the -c flag (i.e., when printing matching lines). It now reports both the number of unique matching lines found and the total number of match occurrences (e.g., Lines: L / Matches: M) for better clarity and context. The output with -c remains unchanged (total occurrences only).

Fixed

  • Summary Count Logic: Corrected the logic so that the summary count reflects the number of unique matching lines printed (returned by print_matching_lines) when operating in line-printing mode, aligning better with user expectations based on grep's line-based output (while still providing the total match/occurrence count).
  • Function Signature Mismatch: Corrected the declaration of print_matching_lines in krep.h to return size_t, matching its definition in krep.c and resolving previous compilation errors.