[PATCH] util.h: declare dirstateTupleType variable instead of defining it

Kevin Bullock kbullock+mercurial at ringworld.org
Thu Jul 3 23:17:56 CDT 2014


On Jul 3, 2014, at 12:06 PM, André Sintzoff <andre.sintzoff at gmail.com> wrote:

> # HG changeset patch
> # User André Sintzoff <andre.sintzoff at gmail.com>
> # Date 1404407104 -7200
> #      Jeu jul 03 19:05:04 2014 +0200
> # Node ID 0022ee690446dcf42075780ff9022d8f7d8e69f0
> # Parent  61b333b982ea7baab198a188306fc05fb2850179
> util.h: declare dirstateTupleType variable instead of defining it
> 
> The definition is already in parsers.c
> 
> This patch avoids, at least on Mac OS X 10.6.8, build issue since e250b8300e6e

Nice fix. Crewed, thanks.

pacem in terris / мир / शान्ति / ‎‫سَلاَم‬ / 平和
Kevin R. Bullock

> diff --git a/mercurial/util.h b/mercurial/util.h
> --- a/mercurial/util.h
> +++ b/mercurial/util.h
> @@ -159,7 +159,7 @@
> 	int mtime;
> } dirstateTupleObject;
> 
> -PyTypeObject dirstateTupleType;
> +extern PyTypeObject dirstateTupleType;
> #define dirstate_tuple_check(op) (Py_TYPE(op) == &dirstateTupleType)
> 
> static inline uint32_t getbe32(const char *c)
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel



More information about the Mercurial-devel mailing list