On 03/07/12 12:51, Andrew Gregory wrote:
Showing vertical limbs makes the tree easier to follow.
Old: New: |--pkg |--pkg |--dep1 |--dep1 |--dep2 | |--dep2 |--dep3 |--dep3 |--dep4 |--dep4
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> ---
Fixed more shadow warnings with reverse.
src/util/pactree.c | 80 ++++++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 62 insertions(+), 18 deletions(-)
diff --git a/src/util/pactree.c b/src/util/pactree.c index 6c91a0a..5d82a55 100644 --- a/src/util/pactree.c +++ b/src/util/pactree.c @@ -27,11 +27,18 @@
#define LINE_MAX 512
+typedef struct tdepth { + struct tdepth *prev; + struct tdepth *next; + int level; +} tdepth;
This is not really our usual naming style of struct types. But I'll leave that to Dan when he merges this... On my working branch, Allan