[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Finding Circular Dependencies
From: |
Eli Zaretskii |
Subject: |
Re: Finding Circular Dependencies |
Date: |
Mon, 11 Feb 2008 22:44:35 +0200 |
> From: "Dave Korn" <address@hidden>
> Cc: <address@hidden>
> Date: Mon, 11 Feb 2008 18:36:36 -0000
>
> On 11 February 2008 04:24, Eli Zaretskii wrote:
>
> >
> > Instead of using Perl, how about adding code to Make itself to output
> > the data required for visualization by dotty?
>
> I like that idea. Given that I'm not as familiar with the code internals as
> you probably are, have you got a couple of pointers to help me out with things
> like
Well, those questions are best answered by Paul, but I'll try my best:
> - when to dump the data ? (I'm thinking maybe sometime just after all the
> makefiles have been remade?)
I think it's before the second call to update_goal_chain in main.c.
> - what's the name of the struct that holds the dependency data and where's the
> head?
I think the variable `goals' (static struct dep variable in main.c) is
it, possibly together with struct file members of each goal. Each
struct file's `deps' member points to a chain of struct dep objects,
chained through their `next' member. I think you can generate the
dependency graph by chasing these. See remake.c, dep.h, and filedef.h
for more details (and perhaps wait for Paul to correct what I messed
up ;-).
- Finding Circular Dependencies, David A. Greene, 2008/02/08
- Re: Finding Circular Dependencies, Alexander Kriegisch, 2008/02/10
- Re: Finding Circular Dependencies, Eli Zaretskii, 2008/02/10
- Re: Finding Circular Dependencies, Alexander Kriegisch, 2008/02/11
- RE: Finding Circular Dependencies, Dave Korn, 2008/02/11
- Re: Finding Circular Dependencies,
Eli Zaretskii <=
- Re: Finding Circular Dependencies, Paul Smith, 2008/02/12
- Re: Finding Circular Dependencies, Alexander Kriegisch, 2008/02/12
- Re: Finding Circular Dependencies, Paul Smith, 2008/02/12
- Re: Finding Circular Dependencies, Alexander Kriegisch, 2008/02/13
- Re: Finding Circular Dependencies, Eric Melski, 2008/02/12
- Re: Finding Circular Dependencies, Eli Zaretskii, 2008/02/12
- Re: Finding Circular Dependencies, Paul Smith, 2008/02/12
Re: Finding Circular Dependencies, David A. Greene, 2008/02/11