Follow upstream changes -- Bytestring updates
[git-darcs-import.git] / src / fpstring.h
blob910be488aad3568c40b2deaa5e3f48fafcb2453b
1 #include <HsFFI.h>
2 #include <sys/types.h>
4 int wfindps_helper(char c, const char *s, int len);
5 void debug_free(void *p);
6 void debug_alloc(void *p, const char *name);
8 // int first_white(const char *s, int len);
9 // int first_nonwhite(const char *s, int len);
10 int has_funky_char(const char *s, int len);
12 char *my_mmap(size_t len, int fd);
14 int utf8_to_ints(HsInt *pwc, const unsigned char *s, int n);
16 void conv_to_hex(unsigned char *dest, unsigned char *from, int num_chars);
17 void conv_from_hex(unsigned char *dest, unsigned char *from, int num_chars);