67 |
|
lp = lu_find(&clr_tab, av[1]); /* lookup context */ |
68 |
|
if (lp == NULL) |
69 |
|
return(MG_EMEM); |
70 |
+ |
c_ccname = lp->key; |
71 |
|
c_ccolor = (C_COLOR *)lp->data; |
72 |
|
if (ac == 2) { /* reestablish previous context */ |
73 |
|
if (c_ccolor == NULL) |
84 |
|
lp->data = (char *)malloc(sizeof(C_COLOR)); |
85 |
|
if (lp->data == NULL) |
86 |
|
return(MG_EMEM); |
87 |
+ |
c_ccname = lp->key; |
88 |
|
c_ccolor = (C_COLOR *)lp->data; |
89 |
|
c_ccolor->clock = 0; |
90 |
|
} |
89 |
– |
c_ccname = lp->key; |
91 |
|
i = c_ccolor->clock; |
92 |
|
if (ac == 3) { /* use default template */ |
93 |
|
*c_ccolor = c_dfcolor; |
177 |
|
lp = lu_find(&mat_tab, av[1]); /* lookup context */ |
178 |
|
if (lp == NULL) |
179 |
|
return(MG_EMEM); |
180 |
+ |
c_cmname = lp->key; |
181 |
|
c_cmaterial = (C_MATERIAL *)lp->data; |
182 |
|
if (ac == 2) { /* reestablish previous context */ |
183 |
|
if (c_cmaterial == NULL) |
194 |
|
lp->data = (char *)malloc(sizeof(C_MATERIAL)); |
195 |
|
if (lp->data == NULL) |
196 |
|
return(MG_EMEM); |
197 |
+ |
c_cmname = lp->key; |
198 |
|
c_cmaterial = (C_MATERIAL *)lp->data; |
199 |
|
c_cmaterial->clock = 0; |
200 |
|
} |
198 |
– |
c_cmname = lp->key; |
201 |
|
i = c_cmaterial->clock; |
202 |
|
if (ac == 3) { /* use default template */ |
203 |
|
*c_cmaterial = c_dfmaterial; |
311 |
|
lp = lu_find(&vtx_tab, av[1]); /* lookup context */ |
312 |
|
if (lp == NULL) |
313 |
|
return(MG_EMEM); |
314 |
+ |
c_cvname = lp->key; |
315 |
|
c_cvertex = (C_VERTEX *)lp->data; |
316 |
|
if (ac == 2) { /* reestablish previous context */ |
317 |
|
if (c_cvertex == NULL) |
328 |
|
lp->data = (char *)malloc(sizeof(C_VERTEX)); |
329 |
|
if (lp->data == NULL) |
330 |
|
return(MG_EMEM); |
331 |
+ |
c_cvname = lp->key; |
332 |
|
c_cvertex = (C_VERTEX *)lp->data; |
333 |
|
} |
330 |
– |
c_cvname = lp->key; |
334 |
|
i = c_cvertex->clock; |
335 |
|
if (ac == 3) { /* use default template */ |
336 |
|
*c_cvertex = c_dfvertex; |