On Wed, Aug 31, 2011 at 9:01 AM, Steve Simon <[email protected]> wrote:

> Anyone have any pointers to a diff for C code.
>
> I have two libraries, A and B.
>
> B is and expanded and modified version of A and I have been
> asked to extract A from B to build two libraries one
> built on top of the other.
>

I'm unclear what you're seeking.  For instance, given this:

// original/a.c
// ...mumbly...
void foo()
{
    int i;

    i = x();
    i = y()
}

and

// new/a.c
// ...mumbly...
void foo()
{
    int i;

    i = y();
    i = z();
}

the obvious line of difference is the removal of i = x() and the addition of
i = z();  So what will the diff'd version look like, conceptually would it
be this? :

// diffd/a.c
// ...mumbly...
// ...possible more mumbly...
void foo()
{
    int i;

    diffd_old();
    i = y();
    diffd_new();
}

-- 
Greg Comeau / 4.3.10.1 with C++0xisms now in beta!
Comeau C/C++ ONLINE ==>     http://www.comeaucomputing.com/tryitout
World Class Compilers:  Breathtaking C++, Amazing C99, Fabulous C90.
Comeau C/C++ with Dinkumware's Libraries... Have you tried it?

Reply via email to