diff mercurial/cext/parsers.c @ 33758:0f4ac3b6dee4

cext: factor out header for charencode.c This merges a part of util.h with the header which should exist for charencode.c.
author Yuya Nishihara <yuya@tcha.org>
date Sun, 21 May 2017 14:23:22 +0900
parents e9996bd7203f
children a22339d389d4
line wrap: on
line diff
--- a/mercurial/cext/parsers.c	Mon Jul 31 22:28:27 2017 +0900
+++ b/mercurial/cext/parsers.c	Sun May 21 14:23:22 2017 +0900
@@ -12,6 +12,7 @@
 #include <stddef.h>
 #include <string.h>
 
+#include "charencode.h"
 #include "util.h"
 #include "bitmanipulation.h"
 
@@ -29,12 +30,6 @@
 
 static const char *const versionerrortext = "Python minor version mismatch";
 
-/* defined in charencode.c */
-PyObject *unhexlify(const char *str, int len);
-PyObject *asciilower(PyObject *self, PyObject *args);
-PyObject *asciiupper(PyObject *self, PyObject *args);
-PyObject *make_file_foldmap(PyObject *self, PyObject *args);
-
 static PyObject *dict_new_presized(PyObject *self, PyObject *args)
 {
 	Py_ssize_t expected_size;