mercurial/cext/manifest.c
changeset 33758 0f4ac3b6dee4
parent 33757 e9996bd7203f
child 34438 b90e8da190da
equal deleted inserted replaced
33757:e9996bd7203f 33758:0f4ac3b6dee4
    10 
    10 
    11 #include <assert.h>
    11 #include <assert.h>
    12 #include <string.h>
    12 #include <string.h>
    13 #include <stdlib.h>
    13 #include <stdlib.h>
    14 
    14 
       
    15 #include "charencode.h"
    15 #include "util.h"
    16 #include "util.h"
    16 
    17 
    17 #define DEFAULT_LINES 100000
    18 #define DEFAULT_LINES 100000
    18 
    19 
    19 typedef struct {
    20 typedef struct {
    35 } lazymanifest;
    36 } lazymanifest;
    36 
    37 
    37 #define MANIFEST_OOM -1
    38 #define MANIFEST_OOM -1
    38 #define MANIFEST_NOT_SORTED -2
    39 #define MANIFEST_NOT_SORTED -2
    39 #define MANIFEST_MALFORMED -3
    40 #define MANIFEST_MALFORMED -3
    40 
       
    41 /* defined in charencode.c */
       
    42 PyObject *unhexlify(const char *str, int len);
       
    43 
    41 
    44 /* get the length of the path for a line */
    42 /* get the length of the path for a line */
    45 static size_t pathlen(line *l) {
    43 static size_t pathlen(line *l) {
    46 	return strlen(l->start);
    44 	return strlen(l->start);
    47 }
    45 }