[PATCH 1 of 3 v2] bdiff: use ssize_t in places that will be later exported

Augie Fackler raf at durin42.com
Mon Jul 18 08:09:52 EDT 2016


On Mon, Jul 18, 2016 at 01:08:59PM +0200, Maciej Fijalkowski wrote:
> # HG changeset patch
> # User Maciej Fijalkowski <fijall at gmail.com>
> # Date 1468395384 -7200
> #      Wed Jul 13 09:36:24 2016 +0200
> # Node ID 385dd9f789d45995bc657ab2244732953a90ec3d
> # Parent  1a1612ddd9721f196690e1fa0831764b43fc6c6e
> bdiff: use ssize_t in places that will be later exported

The previous round landed with a wording tweak as
666832b9e154::9631ff5ebbeb - I see that there aren't code
differences. Thanks!

(Sorry about any confusion on the state of the last round - that's
likely my fault.)

>
> diff --git a/mercurial/bdiff.c b/mercurial/bdiff.c
> --- a/mercurial/bdiff.c
> +++ b/mercurial/bdiff.c
> @@ -15,12 +15,13 @@
>  #include <string.h>
>  #include <limits.h>
>
> +#include "compat.h"
>  #include "util.h"
>  #include "bitmanipulation.h"
>
>  struct line {
>       int hash, n, e;
> -	Py_ssize_t len;
> +	ssize_t len;
>       const char *l;
>  };
>
> @@ -34,7 +35,7 @@
>       struct hunk *next;
>  };
>
> -static int splitlines(const char *a, Py_ssize_t len, struct line **lr)
> +static int splitlines(const char *a, ssize_t len, struct line **lr)
>  {
>       unsigned hash;
>       int i;
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


More information about the Mercurial-devel mailing list