4 #include "yaccParser/entidt.h"
13 /************** entid ******************/
15 entidt mkentid(PPgentid)
18 register struct Sentid *pp =
19 (struct Sentid *) malloc(sizeof(struct Sentid));
21 pp -> Xgentid = PPgentid;
30 fprintf(stderr,"gentid: illegal selection; was %d\n", t -> tag);
31 #endif /* UGEN_DEBUG */
32 return(& t -> Xgentid);
35 /************** enttype ******************/
37 entidt mkenttype(PPgitentid)
40 register struct Senttype *pp =
41 (struct Senttype *) malloc(sizeof(struct Senttype));
43 pp -> Xgitentid = PPgitentid;
47 stringId *Rgitentid(t)
51 if(t -> tag != enttype)
52 fprintf(stderr,"gitentid: illegal selection; was %d\n", t -> tag);
53 #endif /* UGEN_DEBUG */
54 return(& t -> Xgitentid);
57 /************** enttypeall ******************/
59 entidt mkenttypeall(PPgatentid)
62 register struct Senttypeall *pp =
63 (struct Senttypeall *) malloc(sizeof(struct Senttypeall));
64 pp -> tag = enttypeall;
65 pp -> Xgatentid = PPgatentid;
69 stringId *Rgatentid(t)
70 struct Senttypeall *t;
73 if(t -> tag != enttypeall)
74 fprintf(stderr,"gatentid: illegal selection; was %d\n", t -> tag);
75 #endif /* UGEN_DEBUG */
76 return(& t -> Xgatentid);
79 /************** enttypecons ******************/
81 entidt mkenttypecons(PPgctentid, PPgctentcons)
85 register struct Senttypecons *pp =
86 (struct Senttypecons *) malloc(sizeof(struct Senttypecons));
87 pp -> tag = enttypecons;
88 pp -> Xgctentid = PPgctentid;
89 pp -> Xgctentcons = PPgctentcons;
93 stringId *Rgctentid(t)
94 struct Senttypecons *t;
97 if(t -> tag != enttypecons)
98 fprintf(stderr,"gctentid: illegal selection; was %d\n", t -> tag);
99 #endif /* UGEN_DEBUG */
100 return(& t -> Xgctentid);
104 struct Senttypecons *t;
107 if(t -> tag != enttypecons)
108 fprintf(stderr,"gctentcons: illegal selection; was %d\n", t -> tag);
109 #endif /* UGEN_DEBUG */
110 return(& t -> Xgctentcons);
113 /************** entclass ******************/
115 entidt mkentclass(PPgcentid, PPgcentops)
119 register struct Sentclass *pp =
120 (struct Sentclass *) malloc(sizeof(struct Sentclass));
121 pp -> tag = entclass;
122 pp -> Xgcentid = PPgcentid;
123 pp -> Xgcentops = PPgcentops;
127 stringId *Rgcentid(t)
131 if(t -> tag != entclass)
132 fprintf(stderr,"gcentid: illegal selection; was %d\n", t -> tag);
133 #endif /* UGEN_DEBUG */
134 return(& t -> Xgcentid);
141 if(t -> tag != entclass)
142 fprintf(stderr,"gcentops: illegal selection; was %d\n", t -> tag);
143 #endif /* UGEN_DEBUG */
144 return(& t -> Xgcentops);
147 /************** entmod ******************/
149 entidt mkentmod(PPgmentid)
152 register struct Sentmod *pp =
153 (struct Sentmod *) malloc(sizeof(struct Sentmod));
155 pp -> Xgmentid = PPgmentid;
159 stringId *Rgmentid(t)
163 if(t -> tag != entmod)
164 fprintf(stderr,"gmentid: illegal selection; was %d\n", t -> tag);
165 #endif /* UGEN_DEBUG */
166 return(& t -> Xgmentid);