libfossil
fsl__diff_cx Struct Reference

#include "internal.h"

Collaboration diagram for fsl__diff_cx:

Data Fields

int * aEdit
 aEdit describes the raw diff.
fsl_dline * aFrom
 File content for the left side of the diff.
fsl_dline * aTo
 File content for the right side of the diff.
int(* cmpLine )(const fsl_dline *const, const fsl_dline *const)
 Predicate for comparing LHS/RHS lines for equivalence.
int nEdit
 Number of integers (3x num of triples) in aEdit[].
int nEditAlloc
 Number of elements allocated for aEdit[].
int nFrom
 Number of lines in aFrom[].
int nTo
 Number of lines in aTo[].

Detailed Description

State for running a raw diff.

See also
fsl__diff_all()

Definition at line 2333 of file internal.h.

Field Documentation

◆ aEdit

int* fsl__diff_cx::aEdit

aEdit describes the raw diff.

Each triple of integers in aEdit[] means:

(1) COPY: Number of lines aFrom and aTo have in common (2) DELETE: Number of lines found only in aFrom (3) INSERT: Number of lines found only in aTo

The triples repeat until all lines of both aFrom and aTo are accounted for. The array is terminated with a triple of (0,0,0).

Definition at line 2345 of file internal.h.

◆ aFrom

fsl_dline* fsl__diff_cx::aFrom

File content for the left side of the diff.

Definition at line 2351 of file internal.h.

◆ aTo

fsl_dline* fsl__diff_cx::aTo

File content for the right side of the diff.

Definition at line 2355 of file internal.h.

◆ cmpLine

int(* fsl__diff_cx::cmpLine) (const fsl_dline *const, const fsl_dline *const)

Predicate for comparing LHS/RHS lines for equivalence.

Definition at line 2359 of file internal.h.

◆ nEdit

int fsl__diff_cx::nEdit

Number of integers (3x num of triples) in aEdit[].

Definition at line 2347 of file internal.h.

◆ nEditAlloc

int fsl__diff_cx::nEditAlloc

Number of elements allocated for aEdit[].

Definition at line 2349 of file internal.h.

◆ nFrom

int fsl__diff_cx::nFrom

Number of lines in aFrom[].

Definition at line 2353 of file internal.h.

◆ nTo

int fsl__diff_cx::nTo

Number of lines in aTo[].

Definition at line 2357 of file internal.h.


The documentation for this struct was generated from the following file: