Mercurial > hg > Applications > Grep
comparison regexParser/sequentialSearch.h @ 231:d67649929e96
add grepWalk
author | Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 19 Jan 2016 12:54:11 +0900 |
parents | |
children | 1a34e702776a |
comparison
equal
deleted
inserted
replaced
230:2081b9d6a179 | 231:d67649929e96 |
---|---|
1 #include <sys/types.h> | |
2 | |
3 typedef struct buffer { | |
4 unsigned char *buff; | |
5 unsigned char *buffptr; | |
6 unsigned char *buffend; | |
7 unsigned char *matchBegin; | |
8 } Buffer, *BufferPtr; | |
9 | |
10 typedef struct { | |
11 unsigned char* file_mmap; | |
12 off_t size; | |
13 } st_mmap_t; | |
14 | |
15 extern st_mmap_t createSt_mmap(char* filename, int fd); | |
16 extern Buffer createBuffer(st_mmap_t st_mmap); |