# HG changeset patch # User Matt Harbison # Date 2018-09-13 16:43:50 # Node ID c06c585f166bf97f4403d079f0f70508bdb035a5 # Parent ec68135a89352a20f1f05d86084c51bdb4969efe cext: stop preprocessing a partial function call MSVC++ 14 yelled: mercurial/cext/revlog.c(1913): fatal error C1057: unexpected end of file in macro expansion At this point, the C extensions build (with warnings), and it dies in win32.py because the `_fields_` strings in the ctypes classes are being converted to bytes by the source translator. diff --git a/mercurial/cext/revlog.c b/mercurial/cext/revlog.c --- a/mercurial/cext/revlog.c +++ b/mercurial/cext/revlog.c @@ -1911,10 +1911,11 @@ static int index_slice_del(indexObject * /* Argument changed from PySliceObject* to PyObject* in Python 3. */ #ifdef IS_PY3K if (PySlice_GetIndicesEx(item, length, + &start, &stop, &step, &slicelength) < 0) #else if (PySlice_GetIndicesEx((PySliceObject*)item, length, + &start, &stop, &step, &slicelength) < 0) #endif - &start, &stop, &step, &slicelength) < 0) return -1; if (slicelength <= 0)