[pacman-dev] [patch] patch IV rewritten for git

Dan McGee dpmcgee at gmail.com
Sun Jun 10 21:51:34 EDT 2007


On 6/10/07, Nagy Gabor <ngaba at petra.hos.u-szeged.hu> wrote:
> diff --git a/lib/libalpm/deps.h b/lib/libalpm/deps.h
> index 8f3a9b9..56028a4 100644
> --- a/lib/libalpm/deps.h
> +++ b/lib/libalpm/deps.h
> @@ -42,6 +42,18 @@ struct __pmdepmissing_t {
>         pmdepend_t depend;
>  };
>
> +/* Graphs */
> +struct __pmgraph_t {
> +       int state; //0: untouched, -1: entered, other: leaving time
> +       void *data;
> +       struct __pmgraph_t *father; //where did we come from?
> +       alpm_list_t *sons;
> +       alpm_list_t *sonptr; // points to a son in the sons list

For consistancy with the rest of the libalpm/pacman code, please make
sure you are using only the /* */ comment style and not //. I'm fixing
it now, but just a FYI. I'm also renaming sons and father to child and
parent, respectively, to be a bit more gender-friendly. Don't want to
upset the female packages, now do we?

-Dan




More information about the pacman-dev mailing list