Move graph.h functions into graph.c
commitdd8cf0c12dd5e8bf951933723558eadc5c6f04af
authorDan McGee <dan@archlinux.org>
Mon, 11 Apr 2011 21:45:43 +0000 (11 16:45 -0500)
committerDan McGee <dan@archlinux.org>
Fri, 15 Apr 2011 23:36:53 +0000 (15 18:36 -0500)
tree1c0be33c958edd487de5da34510948b3af4e47ea
parent8df7208d7b0f4cec2421e9e167baaae4dea27bf7
Move graph.h functions into graph.c

So we only need one copy in the final library, not one copy per time
used. Ensure all necessary includes are in place (especially to get the
right size of off_t each time it is compiled) by including "config.h" in
the new graph.c.

One small adjustment here makes the graph_free code more robust- ensure
we don't have invalid pointers after each iteration by looking at the
parents and children and adjusting accordingly.

Signed-off-by: Dan McGee <dan@archlinux.org>
lib/libalpm/Makefile.am
lib/libalpm/graph.c [copied from lib/libalpm/graph.h with 55% similarity]
lib/libalpm/graph.h