File: search.h

package info (click to toggle)
alevt 1:1.6.2-4
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 956 kB
  • ctags: 662
  • sloc: ansic: 6,284; makefile: 119; perl: 104; sh: 15
file content (17 lines) | stat: -rw-r--r-- 343 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef SEARCH_H
#define SEARCH_H

#include <regex.h>

struct search
{
    struct cache *cache;
    regex_t pattern[1];
    int x, y, len;		// the position of the match
};

struct search *search_start(struct cache *ca, u8 *pattern);
void search_end(struct search *s);
int search_next(struct search *s, int *pgno, int *subno, int dir);

#endif