You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.