X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fdata1.h;h=ca7862fcdd9eac984b0038ad3d1c4b9c9dfa77a8;hb=8d363b42a1805306b5df26aac694a4491d5c9119;hp=e7982d4a99236fb011ce70b163e24f9b7b4503d1;hpb=21a7fea425de8b32ac71bbbb981e88e77e6a3428;p=yaz-moved-to-github.git diff --git a/include/data1.h b/include/data1.h index e7982d4..ca7862f 100644 --- a/include/data1.h +++ b/include/data1.h @@ -24,7 +24,14 @@ * OF THIS SOFTWARE. * * $Log: data1.h,v $ - * Revision 1.38 1998-10-15 08:29:15 adam + * Revision 1.40 1998-11-03 10:14:12 adam + * Changed definition of data1 node so that it uses less space. + * + * Revision 1.39 1998/10/28 15:10:06 adam + * Added --with-yc option to configure. For the data1_node in data1.h: + * decreased size of localdata and removed member "line" which wasn't useful. + * + * Revision 1.38 1998/10/15 08:29:15 adam * Tag set type may be specified in reference to it using "tagset" * directive in .abs-files and "include" directive in .tag-files. * @@ -406,14 +413,16 @@ typedef struct data1_node { char *tag; data1_element *element; - int node_selected; - int make_variantlist; int no_data_requested; int get_bytes; + unsigned node_selected : 1; + unsigned make_variantlist : 1; } tag; struct { + char *data; /* filename or data */ + int len; /* text inclusion */ #define DATA1I_inctxt 1 /* binary data inclusion */ @@ -424,10 +433,8 @@ typedef struct data1_node #define DATA1I_num 4 /* object identifier */ #define DATA1I_oid 5 - int what; - int formatted_text; /* newlines are significant */ - int len; - char *data; /* filename or data */ + unsigned what:7; + unsigned formatted_text : 1; /* newlines are significant */ } data; struct @@ -438,9 +445,8 @@ typedef struct data1_node } u; void (*destroy)(struct data1_node *n); -#define DATA1_LOCALDATA 40 +#define DATA1_LOCALDATA 12 char lbuf[DATA1_LOCALDATA]; /* small buffer for local data */ - int line; struct data1_node *next; struct data1_node *child; struct data1_node *last_child;