[PATCH 03 of 22] radixlink: add C implementation

Yuya Nishihara yuya at tcha.org
Tue Jun 6 11:58:09 EDT 2017


On Sun, 4 Jun 2017 16:59:15 -0700, Jun Wu wrote:
> # HG changeset patch
> # User Jun Wu <quark at fb.com>
> # Date 1496550656 25200
> #      Sat Jun 03 21:30:56 2017 -0700
> # Node ID d492628229c58f8417a8b5925a614e26a16465af
> # Parent  e8e8d713e4b774f6894ee65723e7fdc12bf8a101
> # Available At https://bitbucket.org/quark-zju/hg-draft
> #              hg pull https://bitbucket.org/quark-zju/hg-draft -r d492628229c5
> radixlink: add C implementation

> +++ b/mercurial/cext/radixlink.c
> @@ -0,0 +1,314 @@
> +/* radixlink.c - Python wrapper for C radixlink implementation
> + *
> + * Copyright 2017 Facebook, Inc.
> + *
> + * This software may be used and distributed according to the terms of the
> + * GNU General Public License version 2 or any later version. */
> +
> +#include <Python.h>
> +#include <stdio.h>

(not yet read the code at all)

I think new code should be PY_SSIZE_T_CLEAN.


More information about the Mercurial-devel mailing list