IDZEBRA
2.2.7
|
#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <idzebra/util.h>
#include <dfa.h>
#include "imalloc.h"
Go to the source code of this file.
Macros | |
#define | O_BINARY 0 |
#define | INF_BUF_SIZE 32768U |
Functions | |
void | error (const char *format,...) |
int | agrep_options (int argc, char **argv) |
static int | inf_flush (int fd) |
static char * | prline (char *p) |
static int | go (int fd, struct DFA_state **dfaar) |
int | agrep (struct DFA_state **dfas, int fd) |
int | main (int argc, char **argv) |
Variables | |
static char * | prog |
static int | show_lines = 0 |
static char * | inf_buf |
static char * | inf_ptr |
static char * | inf_flsh |
static int | inf_eof |
static int | line_no |
int agrep | ( | struct DFA_state ** | dfas, |
int | fd | ||
) |
int agrep_options | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 63 of file agrep.c.
References debug_dfa_followpos, debug_dfa_tran, debug_dfa_trav, dfa_verbose, prog, and show_lines.
Referenced by main().
void error | ( | const char * | format, |
... | |||
) |
Definition at line 51 of file agrep.c.
References prog.
Referenced by facet_fetch(), parse_index_spec(), read_defs(), read_file(), read_rules(), sort_fetch(), and special_index_fetch().
|
static |
Definition at line 162 of file agrep.c.
References DFA_tran::ch, fd, inf_eof, inf_flsh, inf_flush(), inf_ptr, line_no, prline(), prog, DFA_state::rule_nno, DFA_tran::to, DFA_state::tran_no, and DFA_state::trans.
Referenced by agrep().
|
static |
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 232 of file agrep.c.
References agrep(), agrep_options(), dfa_delete(), dfa_init(), dfa_mkstate(), dfa_parse(), fd, O_BINARY, prog, and DFA::states.
|
static |
|
static |
Definition at line 109 of file agrep.c.
Referenced by agrep(), inf_flush(), and prline().
|
static |
Definition at line 111 of file agrep.c.
Referenced by agrep(), go(), and inf_flush().
|
static |
Definition at line 110 of file agrep.c.
Referenced by go(), and inf_flush().
|
static |
Definition at line 110 of file agrep.c.
Referenced by agrep(), go(), and inf_flush().
|
static |
|
static |
|
static |
Definition at line 61 of file agrep.c.
Referenced by agrep_options(), and prline().