X-Git-Url: http://lists.indexdata.dk/cgi-bin?a=blobdiff_plain;f=data1%2Fd1_handle.c;h=2c5f853a44a903e91e806365676e2d8d6a550806;hb=074e63e27b02896c927606ce5bb324a55613dd31;hp=4b49d2e4ee5f70dfb3282777193cc47036e16383;hpb=4eb3b54bb2ca9af74f39f000d3d40dba99ded887;p=idzebra-moved-to-github.git diff --git a/data1/d1_handle.c b/data1/d1_handle.c index 4b49d2e..2c5f853 100644 --- a/data1/d1_handle.c +++ b/data1/d1_handle.c @@ -1,6 +1,6 @@ -/* $Id: d1_handle.c,v 1.6 2004-12-13 20:51:28 adam Exp $ - Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 - Index Data Aps +/* $Id: d1_handle.c,v 1.8 2006-03-29 10:43:23 adam Exp $ + Copyright (C) 1995-2005 + Index Data ApS This file is part of the Zebra server. @@ -26,6 +26,8 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA #include #include +#define DATA1_FLAG_XML 1 + struct data1_handle_info { WRBUF wrbuf; char *tab_path; @@ -41,15 +43,9 @@ struct data1_handle_info { int map_len; NMEM mem; - int flags; }; -data1_handle data1_create (void) -{ - return data1_createx(0); -} - -data1_handle data1_createx (int flags) +data1_handle data1_create(void) { data1_handle p = (data1_handle)xmalloc (sizeof(*p)); if (!p) @@ -64,7 +60,6 @@ data1_handle data1_createx (int flags) p->absyn_cache = NULL; p->attset_cache = NULL; p->mem = nmem_create (); - p->flags = flags; return p; } @@ -162,5 +157,5 @@ FILE *data1_path_fopen (data1_handle dh, const char *file, const char *mode) int data1_is_xmlmode(data1_handle dh) { - return dh->flags & DATA1_FLAG_XML; + return 1; }