From 1ef40949fde41e67c12cb83ed039cbe6c6342f4c Mon Sep 17 00:00:00 2001 From: Sebastian Hammer Date: Thu, 9 May 1996 07:27:11 +0000 Subject: [PATCH] Multiple local values supported. --- include/d1_attset.h | 12 +++++++++--- include/data1.h | 20 ++++++++++++++++++-- 2 files changed, 27 insertions(+), 5 deletions(-) diff --git a/include/d1_attset.h b/include/d1_attset.h index 42bf4b4..c2fb952 100644 --- a/include/d1_attset.h +++ b/include/d1_attset.h @@ -41,12 +41,18 @@ struct data1_attset; +typedef struct data1_local_attribute +{ + int local; + struct data1_local_attribute *next; +} data1_local_attribute; + typedef struct data1_att { struct data1_attset *parent; /* attribute set */ - char *name; /* symbolic name of this tag */ - int value; /* tag value */ - int local; /* local index value */ + char *name; /* symbolic name of this attribute */ + int value; /* attribute value */ + data1_local_attribute *locals; /* local index values */ struct data1_att *next; } data1_att; diff --git a/include/data1.h b/include/data1.h index e97e8d4..2d4b802 100644 --- a/include/data1.h +++ b/include/data1.h @@ -24,7 +24,10 @@ * OF THIS SOFTWARE. * * $Log: data1.h,v $ - * Revision 1.13 1996-02-20 16:32:48 quinn + * Revision 1.14 1996-05-09 07:27:11 quinn + * Multiple local values supported. + * + * Revision 1.13 1996/02/20 16:32:48 quinn * Created util file. * * Revision 1.12 1996/01/18 09:46:34 adam @@ -143,6 +146,12 @@ typedef enum data1_datatype DATA1K_null } data1_datatype; +typedef enum data1_structure +{ + DATA1S_word, + DATA1S_phrase +} data1_structure; + typedef struct data1_marctab { char *name; @@ -233,6 +242,13 @@ typedef struct data1_tagset struct data1_tagset *next; /* sibling */ } data1_tagset; +typedef struct data1_termlist +{ + data1_att *att; + data1_structure structure; + struct data1_termlist *next; +} data1_termlist; + /* * abstract syntax specification */ @@ -241,7 +257,7 @@ typedef struct data1_element { char *name; data1_tag *tag; - data1_att *att; + data1_termlist *termlists; struct data1_element *children; struct data1_element *next; } data1_element; -- 1.7.10.4