1 /* Copyright (C) 1995, 1996 Tom Lord
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU Library General Public License as published by
5 * the Free Software Foundation; either version 2, or (at your option)
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU Library General Public License for more details.
13 * You should have received a copy of the GNU Library General Public License
14 * along with this software; see the file COPYING. If not, write to
15 * the Free Software Foundation, 59 Temple Place - Suite 330,
16 * Boston, MA 02111-1307, USA.
29 const char rx_version_string[] = "GNU Rx version 1.5";
34 rx_make_rx (int cset_size)
37 rx_make_rx (cset_size)
43 new_rx = (struct rx *)malloc (sizeof (*new_rx));
44 rx_bzero ((char *)new_rx, sizeof (*new_rx));
45 new_rx->rx_id = rx_id++;
46 new_rx->cache = rx_default_cache;
47 new_rx->local_cset_size = cset_size;
48 new_rx->instruction_table = rx_id_instruction_table;
49 new_rx->next_nfa_id = 0;
55 rx_free_rx (struct rx * rx)
63 rx->start_set->starts_for = 0;
71 rx_bzero (char * mem, int size)