# HG changeset patch # User Pierre-Yves David # Date 2020-03-08 15:40:39 # Node ID 9db11679f8acb7f68d4b59832109c204db1c44fb # Parent 79ac59d3f73deec693e3af3c167b1bd1940da5ab 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`. diff --git a/mercurial/cext/revlog.c b/mercurial/cext/revlog.c --- a/mercurial/cext/revlog.c +++ b/mercurial/cext/revlog.c @@ -208,7 +208,7 @@ static inline int index_get_parents(inde * * 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) { diff --git a/mercurial/cext/revlog.h b/mercurial/cext/revlog.h --- a/mercurial/cext/revlog.h +++ b/mercurial/cext/revlog.h @@ -14,6 +14,4 @@ extern PyTypeObject HgRevlogIndex_Type; #define HgRevlogIndex_Check(op) PyObject_TypeCheck(op, &HgRevlogIndex_Type) -int HgRevlogIndex_GetParents(PyObject *op, int rev, int *ps); - #endif /* _HG_REVLOG_H_ */