|
IDZEBRA 2.2.11
|
#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 <idzebra/version.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 |
| #define INF_BUF_SIZE 32768U |
Definition at line 111 of file agrep.c.
Referenced by agrep(), and inf_flush().
| #define O_BINARY 0 |
Definition at line 47 of file agrep.c.
Referenced by file_position(), key_file_chunk_read(), main(), mf_init(), r_flush(), r_open(), zebra_create_record_stream(), zebra_extract_file(), and zebra_lock_create().
| int agrep | ( | struct DFA_state ** | dfas, |
| int | fd ) |
| int agrep_options | ( | int | argc, |
| char ** | argv ) |
Definition at line 64 of file agrep.c.
References debug_dfa_followpos, debug_dfa_tran, debug_dfa_trav, dfa_verbose, prog, show_lines, and zebra_get_version().
Referenced by main().
| void error | ( | const char * | format, |
| ... ) |
Definition at line 52 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 165 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 235 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 112 of file agrep.c.
Referenced by agrep(), inf_flush(), and prline().
|
static |
Definition at line 114 of file agrep.c.
Referenced by agrep(), go(), and inf_flush().
|
static |
Definition at line 113 of file agrep.c.
Referenced by go(), and inf_flush().
|
static |
|
static |
Definition at line 114 of file agrep.c.
Referenced by agrep(), go(), prline(), read_file(), read_line(), and read_rules().
|
static |
Definition at line 50 of file agrep.c.
Referenced by agrep_options(), error(), go(), lexer_options(), and main().
|
static |
Definition at line 62 of file agrep.c.
Referenced by agrep_options(), and prline().