5 Struct N_DIFF_RESULT
gullradriel edited this page 2026-10-09 00:55:18 +02:00

N_DIFF_RESULT

Module: DIFF: compare two texts line by line

edit script turning one text into another

#include "n_diff.h"

Public Attributes

Name
int truncated
1 when the edit limit was hit and the differing region was reported as one delete run followed by one insert run
size_t nb_inserted
number of N_DIFF_INSERT lines
size_t nb_deleted
number of N_DIFF_DELETE lines
size_t nb_common
number of N_DIFF_COMMON lines
LIST * lines
LIST of N_DIFF_LINE*, in output order.

Public Attributes Documentation

variable truncated

int truncated;

1 when the edit limit was hit and the differing region was reported as one delete run followed by one insert run

variable nb_inserted

size_t nb_inserted;

number of N_DIFF_INSERT lines

variable nb_deleted

size_t nb_deleted;

number of N_DIFF_DELETE lines

variable nb_common

size_t nb_common;

number of N_DIFF_COMMON lines

variable lines

LIST * lines;

LIST of N_DIFF_LINE*, in output order.