Mercurial > public > mercurial-scm > hg-stable
diff mercurial/cext/revlog.c @ 44485:9db11679f8ac
cext: make HgRevlogIndex_GetParents private again
The rust's direct-ffi code need to access this function. Now that it
`direct-ffi` is no more. We can make this function `static` again.
This change was suggested by `Yuya Nishihara`.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sun, 08 Mar 2020 16:40:39 +0100 |
parents | f5d2720f3bea |
children | b55bec1ea972 |
line wrap: on
line diff
--- a/mercurial/cext/revlog.c Fri Mar 06 16:49:46 2020 +0100 +++ b/mercurial/cext/revlog.c Sun Mar 08 16:40:39 2020 +0100 @@ -208,7 +208,7 @@ * * Returns 0 on success or -1 on failure. */ -int HgRevlogIndex_GetParents(PyObject *op, int rev, int *ps) +static int HgRevlogIndex_GetParents(PyObject *op, int rev, int *ps) { int tiprev; if (!op || !HgRevlogIndex_Check(op) || !ps) {