-/* $Id: data1.h,v 1.9.2.1 2005-04-23 16:31:55 adam Exp $
+/* $Id: data1.h,v 1.9.2.4 2006-09-29 10:02:43 adam Exp $
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004
Index Data Aps
for more details.
You should have received a copy of the GNU General Public License
-along with Zebra; see the file LICENSE.zebra. If not, write to the
-Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
+along with this program; if not, write to the Free Software
+Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
*/
#ifndef DATA1_H
#define DATA1_H
#define ENHANCED_XELM 1
+#define OPTIMIZE_MELM 1
#include <stdio.h>
struct DFA *dfa;
data1_termlist *termlists;
struct data1_xpelement *next;
+#if OPTIMIZE_MELM
+ const char *regexp;
+#endif
+ int match_state;
+ struct data1_xpelement *match_next;
} data1_xpelement;
typedef struct data1_xattr {
unsigned short what; /* DATA1I_text, .. see data1_node.u.data */
} data1_xattr;
-#if 0
-typedef struct data1_absyn data1_absyn;
-#else
typedef struct data1_absyn
{
char *name;
char *encoding;
int enable_xpath_indexing;
} data1_absyn;
-#endif
+
/*
* record data node (tag/data/variant)
*/