diff mercurial/cext/manifest.c @ 33779: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 b90e8da190da
line wrap: on
line diff
--- a/mercurial/cext/manifest.c	Mon Jul 31 22:28:27 2017 +0900
+++ b/mercurial/cext/manifest.c	Sun May 21 14:23:22 2017 +0900
@@ -12,6 +12,7 @@
 #include <string.h>
 #include <stdlib.h>
 
+#include "charencode.h"
 #include "util.h"
 
 #define DEFAULT_LINES 100000
@@ -38,9 +39,6 @@
 #define MANIFEST_NOT_SORTED -2
 #define MANIFEST_MALFORMED -3
 
-/* defined in charencode.c */
-PyObject *unhexlify(const char *str, int len);
-
 /* get the length of the path for a line */
 static size_t pathlen(line *l) {
 	return strlen(l->start);