[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnulib] addition: fstrcmp.h, fstrcmp.c
From: |
Paul Eggert |
Subject: |
Re: [Bug-gnulib] addition: fstrcmp.h, fstrcmp.c |
Date: |
31 Jan 2003 07:35:47 -0800 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/20.3 |
Bruno Haible <address@hidden> writes:
> Since you probably want to stay in C and not use C++ templates, can
> you arrange to put the core of these routines (at least up to and
> including 'compareseq') in a gnulib module whose element type can be
> parametrized through #defines?
Yes, that's the basic idea of what I plan to do in the merge.
> For msgdiff, however, I'll need more than just counts, I'll need
> precise element numbers of each hunk. I.e. there should also be a
> function like
>
> struct hunk * diff_sequences (const ELEMENT *seq1, size_t size1,
> const ELEMENT *seq2, size_t size2);
>
> where
>
> struct hunk
> {
> struct hunk *next;
> struct change *changes; // list of changes, see diff.h
> };
Wouldn't it suffice to return 'struct change *'? That is, why
do you need a list of list of changes; won't a list of changes do?