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

N_DIFF_LINE

Module: DIFF: compare two texts line by line

one line of an edit script

#include "n_diff.h"

Public Attributes

Name
char * text
line content, without its newline, owned by the result
int op
N_DIFF_COMMON, N_DIFF_DELETE or N_DIFF_INSERT.
size_t line_b
zero based position in the second text, or N_DIFF_NO_LINE
size_t line_a
zero based position in the first text, or N_DIFF_NO_LINE

Public Attributes Documentation

variable text

char * text;

line content, without its newline, owned by the result

variable op

int op;

N_DIFF_COMMON, N_DIFF_DELETE or N_DIFF_INSERT.

variable line_b

size_t line_b;

zero based position in the second text, or N_DIFF_NO_LINE

variable line_a

size_t line_a;

zero based position in the first text, or N_DIFF_NO_LINE